home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 …ember: Reference Library / Dev.CD Dec 94.toast / Technical Documentation / Mac Tech Notes (DocViewer) / QD • QuickDraw / QD15 RowBytes Revealed II < prev    next >
MacBinary  |  1994-10-19  |  48.9 KB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Fri Oct 14 05:13:17 1994, modified Wed Oct 19 10:19:20 1994, creator 'HLX2', type 'ONLN', 47667 bytes "QD15 RowBytes Revealed II" , at 0xbab3 2098 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 19 51 44 31 35 20 52 | 6f 77 42 79 74 65 73 20 |..QD15 R|owBytes |
|00000010| 52 65 76 65 61 6c 65 64 | 20 49 49 00 00 00 00 00 |Revealed| II.....|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 00 ba 33 00 | 00 08 32 aa c3 fc 2d aa |......3.|..2...-.|
|00000060| ca db 68 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..h.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 97 88 00 00 |........|........|
|00000080| 51 44 20 31 35 20 2d 20 | 52 6f 77 42 79 74 65 73 |QD 15 - |RowBytes|
|00000090| 20 52 65 76 65 61 6c 65 | 64 20 49 49 0d 51 75 69 | Reveale|d II.Qui|
|000000a0| 63 6b 44 72 61 77 09 0d | 57 72 69 74 74 65 6e 20 |ckDraw..|Written |
|000000b0| 62 79 3a 42 69 6c 6c 20 | 47 75 73 63 68 77 61 6e |by:Bill |Guschwan|
|000000c0| 09 4d 61 79 20 31 39 39 | 33 0d 54 68 69 73 20 54 |.May 199|3.This T|
|000000d0| 65 63 68 6e 69 63 61 6c | 20 4e 6f 74 65 20 64 69 |echnical| Note di|
|000000e0| 73 63 75 73 73 65 73 20 | 74 68 65 20 6d 61 78 69 |scusses |the maxi|
|000000f0| 6d 75 6d 20 72 6f 77 42 | 79 74 65 73 20 76 61 6c |mum rowB|ytes val|
|00000100| 75 65 20 66 6f 72 20 61 | 20 70 69 78 4d 61 70 2e |ue for a| pixMap.|
|00000110| 0d 54 6f 70 69 63 73 0d | 09 a5 20 57 68 61 74 20 |.Topics.|.. What |
|00000120| 69 73 20 74 68 65 20 6c | 61 72 67 65 73 74 20 76 |is the l|argest v|
|00000130| 61 6c 75 65 20 6f 66 20 | 72 6f 77 42 79 74 65 73 |alue of |rowBytes|
|00000140| 3f 0d 09 a5 20 57 68 79 | 20 64 6f 65 73 20 69 74 |?... Why| does it|
|00000150| 20 68 61 76 65 20 61 20 | 6c 69 6d 69 74 3f 0d 09 | have a |limit?..|
|00000160| a5 20 48 6f 77 20 64 6f | 20 79 6f 75 20 69 6e 63 |. How do| you inc|
|00000170| 72 65 61 73 65 20 74 68 | 65 20 6c 69 6d 69 74 3f |rease th|e limit?|
|00000180| 0d 09 0d 49 6e 74 72 6f | 64 75 63 74 69 6f 6e 0d |...Intro|duction.|
|00000190| 54 68 69 73 20 74 65 63 | 68 6e 69 63 61 6c 20 6e |This tec|hnical n|
|000001a0| 6f 74 65 20 63 6f 6e 63 | 65 72 6e 73 20 61 70 70 |ote conc|erns app|
|000001b0| 6c 69 63 61 74 69 6f 6e | 73 20 77 68 69 63 68 20 |lication|s which |
|000001c0| 63 72 65 61 74 65 20 61 | 6e 64 20 72 65 61 64 20 |create a|nd read |
|000001d0| 76 65 72 79 20 6c 61 72 | 67 65 20 70 69 78 4d 61 |very lar|ge pixMa|
|000001e0| 70 73 2e 20 54 68 65 20 | 72 6f 77 42 79 74 65 73 |ps. The |rowBytes|
|000001f0| 20 66 69 65 6c 64 20 64 | 65 66 69 6e 65 73 20 74 | field d|efines t|
|00000200| 68 65 20 6c 69 6d 69 74 | 73 20 6f 66 20 74 68 65 |he limit|s of the|
|00000210| 20 6c 61 72 67 65 73 74 | 20 70 69 78 4d 61 70 2e | largest| pixMap.|
|00000220| 20 46 6f 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | For app|lication|
|00000230| 73 20 77 68 69 63 68 20 | 75 73 65 20 33 32 2d 42 |s which |use 32-B|
|00000240| 69 74 20 51 75 69 63 6b | 44 72 61 77 2c 20 74 68 |it Quick|Draw, th|
|00000250| 69 73 20 6c 69 6d 69 74 | 20 69 73 20 77 65 6c 6c |is limit| is well|
|00000260| 2d 64 65 66 69 6e 65 64 | 3a 20 30 78 33 46 46 45 |-defined|: 0x3FFE|
|00000270| 2e 20 48 6f 77 65 76 65 | 72 2c 20 61 20 66 65 77 |. Howeve|r, a few|
|00000280| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 20 77 61 | applica|tions wa|
|00000290| 6e 74 20 74 6f 20 67 6f | 20 62 65 79 6f 6e 64 20 |nt to go| beyond |
|000002a0| 74 68 69 73 20 6c 69 6d | 69 74 2c 20 61 6e 64 20 |this lim|it, and |
|000002b0| 75 6e 64 65 72 20 73 6f | 6d 65 20 65 78 74 72 65 |under so|me extre|
|000002c0| 6d 65 6c 79 20 63 6f 6e | 74 72 6f 6c 6c 65 64 20 |mely con|trolled |
|000002d0| 73 69 74 75 61 74 69 6f | 6e 73 2c 20 74 68 69 73 |situatio|ns, this|
|000002e0| 20 6c 69 6d 69 74 20 63 | 61 6e 20 62 65 20 65 78 | limit c|an be ex|
|000002f0| 74 65 6e 64 65 64 20 74 | 6f 20 30 78 37 46 46 45 |tended t|o 0x7FFE|
|00000300| 2e 20 54 68 69 73 20 6e | 6f 74 65 20 65 78 70 6c |. This n|ote expl|
|00000310| 61 69 6e 73 20 77 68 79 | 20 74 68 65 20 6c 69 6d |ains why| the lim|
|00000320| 69 74 20 65 78 69 73 74 | 73 2c 20 61 6e 64 20 70 |it exist|s, and p|
|00000330| 72 6f 70 6f 73 65 73 20 | 61 20 66 65 77 20 64 69 |roposes |a few di|
|00000340| 66 66 69 63 75 6c 74 20 | 6d 65 74 68 6f 64 73 20 |fficult |methods |
|00000350| 74 6f 20 65 78 63 65 65 | 64 20 74 68 69 73 20 6c |to excee|d this l|
|00000360| 69 6d 69 74 2e 20 41 6c | 6f 6e 67 20 74 68 65 20 |imit. Al|ong the |
|00000370| 77 61 79 2c 20 70 72 6f | 70 65 72 20 70 61 72 61 |way, pro|per para|
|00000380| 6d 65 74 65 72 20 70 61 | 73 73 69 6e 67 20 66 6f |meter pa|ssing fo|
|00000390| 72 20 43 6f 70 79 42 69 | 74 73 20 69 73 20 64 69 |r CopyBi|ts is di|
|000003a0| 73 63 75 73 73 65 64 20 | 61 6e 64 20 61 20 66 65 |scussed |and a fe|
|000003b0| 77 20 64 65 62 75 67 67 | 69 6e 67 20 74 69 70 73 |w debugg|ing tips|
|000003c0| 20 61 72 65 20 74 68 72 | 6f 77 6e 20 69 6e 2e 0d | are thr|own in..|
|000003d0| 4c 61 72 67 65 73 74 20 | 73 69 7a 65 20 6f 66 20 |Largest |size of |
|000003e0| 72 6f 77 42 79 74 65 73 | 20 6f 66 20 61 20 70 69 |rowBytes| of a pi|
|000003f0| 78 4d 61 70 0d 72 6f 77 | 42 79 74 65 73 20 69 73 |xMap.row|Bytes is|
|00000400| 20 69 6d 70 6f 72 74 61 | 6e 74 20 62 65 63 61 75 | importa|nt becau|
|00000410| 73 65 20 69 74 20 64 65 | 66 69 6e 65 73 20 74 68 |se it de|fines th|
|00000420| 65 20 73 69 7a 65 20 6f | 66 20 61 20 70 69 78 4d |e size o|f a pixM|
|00000430| 61 70 2e 20 72 6f 77 42 | 79 74 65 73 20 68 61 64 |ap. rowB|ytes had|
|00000440| 20 61 20 6c 61 72 67 65 | 73 74 20 73 69 7a 65 20 | a large|st size |
|00000450| 6f 66 20 30 78 31 46 46 | 45 20 75 70 20 74 68 72 |of 0x1FF|E up thr|
|00000460| 6f 75 67 68 20 43 6f 6c | 6f 72 20 51 75 69 63 6b |ough Col|or Quick|
|00000470| 44 72 61 77 2e 20 54 68 | 65 20 74 6f 70 20 74 68 |Draw. Th|e top th|
|00000480| 72 65 65 20 62 69 74 73 | 20 77 65 72 65 20 72 65 |ree bits| were re|
|00000490| 73 65 72 76 65 64 2e 20 | 0d 56 65 72 73 69 6f 6e |served. |.Version|
|000004a0| 20 31 2e 30 20 6f 66 20 | 33 32 2d 42 69 74 20 51 | 1.0 of |32-Bit Q|
|000004b0| 75 69 63 6b 44 72 61 77 | 20 65 78 74 65 6e 64 65 |uickDraw| extende|
|000004c0| 64 20 74 68 61 74 20 6c | 69 6d 69 74 20 74 6f 20 |d that l|imit to |
|000004d0| 30 78 33 46 46 45 3a 20 | 6f 6e 6c 79 20 74 68 65 |0x3FFE: |only the|
|000004e0| 20 74 6f 70 20 74 77 6f | 20 62 69 74 73 20 61 72 | top two| bits ar|
|000004f0| 65 20 72 65 73 65 72 76 | 65 64 2e 20 51 75 69 63 |e reserv|ed. Quic|
|00000500| 6b 44 72 61 77 20 75 73 | 65 73 20 74 68 65 20 74 |kDraw us|es the t|
|00000510| 77 6f 20 62 69 74 73 20 | 66 6f 72 20 69 64 65 6e |wo bits |for iden|
|00000520| 74 69 66 69 63 61 74 69 | 6f 6e 20 70 75 72 70 6f |tificati|on purpo|
|00000530| 73 65 73 2e 20 54 68 65 | 20 74 6f 70 20 62 69 74 |ses. The| top bit|
|00000540| 20 64 69 73 74 69 6e 67 | 75 69 73 68 65 73 20 62 | disting|uishes b|
|00000550| 65 74 77 65 65 6e 20 61 | 20 70 69 78 4d 61 70 20 |etween a| pixMap |
|00000560| 61 6e 64 20 61 20 62 69 | 74 4d 61 70 2e 20 49 66 |and a bi|tMap. If|
|00000570| 20 74 68 65 20 74 6f 70 | 20 62 69 74 20 6f 66 20 | the top| bit of |
|00000580| 72 6f 77 42 79 74 65 73 | 20 69 73 20 73 65 74 2c |rowBytes| is set,|
|00000590| 20 74 68 65 6e 20 51 75 | 69 63 6b 44 72 61 77 20 | then Qu|ickDraw |
|000005a0| 6b 6e 6f 77 73 20 74 68 | 65 20 73 74 72 75 63 74 |knows th|e struct|
|000005b0| 75 72 65 20 69 73 20 61 | 20 70 69 78 4d 61 70 2e |ure is a| pixMap.|
|000005c0| 20 54 68 65 20 73 65 63 | 6f 6e 64 20 68 69 67 68 | The sec|ond high|
|000005d0| 65 73 74 20 62 69 74 20 | 69 73 20 75 73 65 64 20 |est bit |is used |
|000005e0| 62 79 20 43 6f 70 79 42 | 69 74 73 2c 20 43 6f 70 |by CopyB|its, Cop|
|000005f0| 79 4d 61 73 6b 2c 20 43 | 6f 70 79 44 65 65 70 4d |yMask, C|opyDeepM|
|00000600| 61 73 6b 2c 20 53 65 65 | 64 43 46 69 6c 6c 2c 20 |ask, See|dCFill, |
|00000610| 61 6e 64 20 43 61 6c 63 | 43 4d 61 73 6b 20 74 6f |and Calc|CMask to|
|00000620| 20 64 69 73 74 69 6e 67 | 75 69 73 68 20 62 65 74 | disting|uish bet|
|00000630| 77 65 65 6e 20 74 68 65 | 69 72 20 62 69 74 4d 61 |ween the|ir bitMa|
|00000640| 70 20 70 61 72 61 6d 65 | 74 65 72 73 2e 20 54 68 |p parame|ters. Th|
|00000650| 65 20 69 6d 70 6c 69 63 | 61 74 69 6f 6e 73 20 6f |e implic|ations o|
|00000660| 66 20 74 68 69 73 20 69 | 64 65 6e 74 69 66 69 63 |f this i|dentific|
|00000670| 61 74 69 6f 6e 20 73 63 | 68 65 6d 65 20 61 72 65 |ation sc|heme are|
|00000680| 20 66 75 6c 6c 79 20 64 | 69 73 63 75 73 73 65 64 | fully d|iscussed|
|00000690| 20 62 65 6c 6f 77 2e 0d | 33 20 54 79 70 65 73 20 | below..|3 Types |
|000006a0| 6f 66 20 42 69 74 4d 61 | 70 20 50 61 72 61 6d 65 |of BitMa|p Parame|
|000006b0| 74 65 72 73 0d 43 6f 70 | 79 42 69 74 73 2c 20 43 |ters.Cop|yBits, C|
|000006c0| 6f 70 79 4d 61 73 6b 2c | 20 43 6f 70 79 44 65 65 |opyMask,| CopyDee|
|000006d0| 70 4d 61 73 6b 2c 20 53 | 65 65 64 43 46 69 6c 6c |pMask, S|eedCFill|
|000006e0| 2c 20 61 6e 64 20 43 61 | 6c 63 43 4d 61 73 6b 20 |, and Ca|lcCMask |
|000006f0| 61 72 65 20 72 6f 75 74 | 69 6e 65 73 20 77 68 69 |are rout|ines whi|
|00000700| 63 68 20 74 61 6b 65 20 | 62 69 74 4d 61 70 73 20 |ch take |bitMaps |
|00000710| 61 73 20 74 68 65 69 72 | 20 66 69 72 73 74 20 74 |as their| first t|
|00000720| 77 6f 20 70 61 72 61 6d | 65 74 65 72 73 2e 20 46 |wo param|eters. F|
|00000730| 6f 72 20 68 69 73 74 6f | 72 69 63 61 6c 20 61 6e |or histo|rical an|
|00000740| 64 20 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 20 |d compat|ibility |
|00000750| 72 65 61 73 6f 6e 73 2c | 20 74 68 72 65 65 20 74 |reasons,| three t|
|00000760| 79 70 65 73 20 6f 66 20 | 70 61 72 61 6d 65 74 65 |ypes of |paramete|
|00000770| 72 73 20 63 61 6e 20 62 | 65 20 70 61 73 73 65 64 |rs can b|e passed|
|00000780| 20 69 6e 3a 20 62 69 74 | 4d 61 70 2c 20 70 69 78 | in: bit|Map, pix|
|00000790| 4d 61 70 73 20 61 6e 64 | 20 74 68 65 20 70 6f 72 |Maps and| the por|
|000007a0| 74 42 69 74 73 20 66 69 | 65 6c 64 20 6f 66 20 61 |tBits fi|eld of a|
|000007b0| 20 63 47 72 61 66 50 6f | 72 74 2e 0d 46 6f 72 20 | cGrafPo|rt..For |
|000007c0| 74 68 65 20 70 75 72 70 | 6f 73 65 73 20 6f 66 20 |the purp|oses of |
|000007d0| 74 68 69 73 20 6e 6f 74 | 65 2c 20 49 20 77 69 6c |this not|e, I wil|
|000007e0| 6c 20 66 6f 63 75 73 20 | 6f 6e 20 74 68 65 20 43 |l focus |on the C|
|000007f0| 6f 70 79 42 69 74 73 20 | 63 61 6c 6c 2c 20 74 68 |opyBits |call, th|
|00000800| 6f 75 67 68 20 6d 79 20 | 64 69 73 63 75 73 73 69 |ough my |discussi|
|00000810| 6f 6e 20 77 69 6c 6c 20 | 61 70 70 6c 79 20 74 6f |on will |apply to|
|00000820| 20 74 68 65 20 6f 74 68 | 65 72 20 66 6f 75 72 20 | the oth|er four |
|00000830| 72 6f 75 74 69 6e 65 73 | 2e 20 54 68 65 20 62 65 |routines|. The be|
|00000840| 68 61 76 69 6f 72 20 6f | 66 20 74 68 65 73 65 20 |havior o|f these |
|00000850| 66 69 76 65 20 63 61 6c | 6c 73 20 69 73 20 69 64 |five cal|ls is id|
|00000860| 65 6e 74 69 63 61 6c 20 | 66 6f 72 20 74 68 65 20 |entical |for the |
|00000870| 62 69 74 4d 61 70 20 70 | 61 72 61 6d 65 74 65 72 |bitMap p|arameter|
|00000880| 73 2e 20 0d 54 68 65 20 | 42 69 74 4d 61 70 0d 54 |s. .The |BitMap.T|
|00000890| 68 65 20 62 69 74 4d 61 | 70 20 70 61 72 61 6d 65 |he bitMa|p parame|
|000008a0| 74 65 72 20 69 73 20 61 | 63 74 75 61 6c 6c 79 20 |ter is a|ctually |
|000008b0| 61 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 61 20 62 |a pointe|r to a b|
|000008c0| 69 74 4d 61 70 2e 20 49 | 6e 20 50 61 73 63 61 6c |itMap. I|n Pascal|
|000008d0| 2c 20 74 68 65 20 70 6f | 69 6e 74 65 72 20 69 73 |, the po|inter is|
|000008e0| 20 69 6d 70 6c 69 63 69 | 74 2c 20 73 69 6e 63 65 | implici|t, since|
|000008f0| 20 61 20 62 69 74 4d 61 | 70 20 73 74 72 75 63 74 | a bitMa|p struct|
|00000900| 75 72 65 20 69 73 20 67 | 72 65 61 74 65 72 20 74 |ure is g|reater t|
|00000910| 68 61 6e 20 34 20 62 79 | 74 65 73 20 69 6e 20 73 |han 4 by|tes in s|
|00000920| 69 7a 65 20 61 6e 64 20 | 74 68 65 20 50 61 73 63 |ize and |the Pasc|
|00000930| 61 6c 20 63 6f 6d 70 69 | 6c 65 72 20 63 72 65 61 |al compi|ler crea|
|00000940| 74 65 73 20 61 20 70 6f | 69 6e 74 65 72 20 66 6f |tes a po|inter fo|
|00000950| 72 20 61 6e 79 20 64 61 | 74 61 20 73 74 72 75 63 |r any da|ta struc|
|00000960| 74 75 72 65 20 67 72 65 | 61 74 65 72 20 74 68 61 |ture gre|ater tha|
|00000970| 6e 20 34 20 62 79 74 65 | 73 2e 0d 49 6e 20 43 3a |n 4 byte|s..In C:|
|00000980| 0d 70 61 73 63 61 6c 20 | 76 6f 69 64 20 43 6f 70 |.pascal |void Cop|
|00000990| 79 42 69 74 73 28 63 6f | 6e 73 74 20 42 69 74 4d |yBits(co|nst BitM|
|000009a0| 61 70 20 2a 73 72 63 42 | 69 74 73 2c 63 6f 6e 73 |ap *srcB|its,cons|
|000009b0| 74 20 42 69 74 4d 61 70 | 20 2a 64 73 74 42 69 74 |t BitMap| *dstBit|
|000009c0| 73 2c 63 6f 6e 73 74 20 | 52 65 63 74 0d 09 2a 73 |s,const |Rect..*s|
|000009d0| 72 63 52 65 63 74 2c 20 | 63 6f 6e 73 74 20 52 65 |rcRect, |const Re|
|000009e0| 63 74 20 2a 64 73 74 52 | 65 63 74 2c 73 68 6f 72 |ct *dstR|ect,shor|
|000009f0| 74 20 6d 6f 64 65 2c 52 | 67 6e 48 61 6e 64 6c 65 |t mode,R|gnHandle|
|00000a00| 20 6d 61 73 6b 52 67 6e | 29 20 3d 20 30 78 41 38 | maskRgn|) = 0xA8|
|00000a10| 45 43 3b 20 0d 49 6e 20 | 50 61 73 63 61 6c 3a 0d |EC; .In |Pascal:.|
|00000a20| 50 52 4f 43 45 44 55 52 | 45 20 43 6f 70 79 42 69 |PROCEDUR|E CopyBi|
|00000a30| 74 73 28 73 72 63 42 69 | 74 73 3a 20 42 69 74 4d |ts(srcBi|ts: BitM|
|00000a40| 61 70 3b 64 73 74 42 69 | 74 73 3a 20 42 69 74 4d |ap;dstBi|ts: BitM|
|00000a50| 61 70 3b 73 72 63 52 65 | 63 74 3a 20 52 65 63 74 |ap;srcRe|ct: Rect|
|00000a60| 3b 64 73 74 52 65 63 74 | 3a 20 52 65 63 74 3b 0d |;dstRect|: Rect;.|
|00000a70| 09 6d 6f 64 65 3a 20 49 | 4e 54 45 47 45 52 3b 6d |.mode: I|NTEGER;m|
|00000a80| 61 73 6b 52 67 6e 3a 20 | 52 67 6e 48 61 6e 64 6c |askRgn: |RgnHandl|
|00000a90| 65 29 3b 0d 09 49 4e 4c | 49 4e 45 20 24 41 38 45 |e);..INL|INE $A8E|
|00000aa0| 43 3b 0d 54 68 65 20 50 | 69 78 4d 61 70 0d 57 69 |C;.The P|ixMap.Wi|
|00000ab0| 74 68 20 43 6f 6c 6f 72 | 20 51 75 69 63 6b 44 72 |th Color| QuickDr|
|00000ac0| 61 77 2c 20 43 6f 70 79 | 42 69 74 73 20 61 63 63 |aw, Copy|Bits acc|
|00000ad0| 65 70 74 73 20 70 69 78 | 4d 61 70 73 20 61 73 20 |epts pix|Maps as |
|00000ae0| 42 69 74 4d 61 70 20 70 | 61 72 61 6d 65 74 65 72 |BitMap p|arameter|
|00000af0| 73 2e 20 54 68 69 73 20 | 73 75 70 70 6f 72 74 2c |s. This |support,|
|00000b00| 20 68 6f 77 65 76 65 72 | 2c 20 64 6f 65 73 20 6e | however|, does n|
|00000b10| 6f 74 20 63 6f 6d 65 20 | 77 69 74 68 6f 75 74 20 |ot come |without |
|00000b20| 61 20 63 6f 73 74 2e 20 | 43 6f 70 79 42 69 74 73 |a cost. |CopyBits|
|00000b30| 20 6e 65 65 64 73 20 61 | 20 6d 65 74 68 6f 64 20 | needs a| method |
|00000b40| 74 6f 20 64 69 73 74 69 | 6e 67 75 69 73 68 20 62 |to disti|nguish b|
|00000b50| 65 74 77 65 65 6e 20 74 | 68 65 20 74 77 6f 20 70 |etween t|he two p|
|00000b60| 61 72 61 6d 65 74 65 72 | 73 2e 20 41 73 20 6d 65 |arameter|s. As me|
|00000b70| 6e 74 69 6f 6e 65 64 20 | 61 62 6f 76 65 2c 20 74 |ntioned |above, t|
|00000b80| 68 65 20 74 6f 70 20 62 | 69 74 20 6f 66 20 72 6f |he top b|it of ro|
|00000b90| 77 42 79 74 65 73 20 64 | 69 73 74 69 6e 67 75 69 |wBytes d|istingui|
|00000ba0| 73 68 65 73 20 62 65 74 | 77 65 65 6e 20 70 69 78 |shes bet|ween pix|
|00000bb0| 4d 61 70 73 20 61 6e 64 | 20 62 69 74 4d 61 70 73 |Maps and| bitMaps|
|00000bc0| 2e 20 57 68 69 6c 65 20 | 74 68 69 73 20 62 69 74 |. While |this bit|
|00000bd0| 20 61 6c 6c 6f 77 73 20 | 70 69 78 4d 61 70 73 20 | allows |pixMaps |
|00000be0| 74 6f 20 62 65 20 70 61 | 73 73 65 64 20 69 6e 20 |to be pa|ssed in |
|00000bf0| 74 6f 20 43 6f 70 79 42 | 69 74 73 2c 20 74 68 65 |to CopyB|its, the|
|00000c00| 20 73 69 7a 65 20 6f 66 | 20 72 6f 77 42 79 74 65 | size of| rowByte|
|00000c10| 73 20 69 73 20 64 69 6d | 69 6e 69 73 68 65 64 2e |s is dim|inished.|
|00000c20| 20 41 6c 6c 20 64 65 73 | 69 67 6e 20 63 68 6f 69 | All des|ign choi|
|00000c30| 63 65 73 20 68 61 76 65 | 20 74 72 61 64 65 2d 6f |ces have| trade-o|
|00000c40| 66 66 73 2e 0d 54 68 65 | 20 70 6f 72 74 42 69 74 |ffs..The| portBit|
|00000c50| 73 20 6f 66 20 61 20 43 | 47 72 61 66 50 6f 72 74 |s of a C|GrafPort|
|00000c60| 0d 49 6e 20 64 65 73 69 | 67 6e 69 6e 67 20 43 6f |.In desi|gning Co|
|00000c70| 6c 6f 72 20 51 75 69 63 | 6b 44 72 61 77 2c 20 63 |lor Quic|kDraw, c|
|00000c80| 65 72 74 61 69 6e 20 72 | 75 6c 65 73 20 77 65 72 |ertain r|ules wer|
|00000c90| 65 20 73 65 74 20 75 70 | 20 74 6f 20 70 72 6f 76 |e set up| to prov|
|00000ca0| 69 64 65 20 63 6f 6d 70 | 61 74 69 62 69 6c 69 74 |ide comp|atibilit|
|00000cb0| 79 20 77 69 74 68 20 74 | 68 65 20 6e 65 77 20 66 |y with t|he new f|
|00000cc0| 65 61 74 75 72 65 73 2e | 20 48 65 72 65 20 77 61 |eatures.| Here wa|
|00000cd0| 73 20 6f 6e 65 20 72 75 | 6c 65 3a 20 79 6f 75 20 |s one ru|le: you |
|00000ce0| 73 68 6f 75 6c 64 20 62 | 65 20 61 62 6c 65 20 74 |should b|e able t|
|00000cf0| 6f 20 70 61 73 73 20 61 | 20 70 6f 72 74 50 69 78 |o pass a| portPix|
|00000d00| 4d 61 70 20 66 69 65 6c | 64 20 74 6f 20 43 6f 70 |Map fiel|d to Cop|
|00000d10| 79 42 69 74 73 20 6a 75 | 73 74 20 61 73 20 79 6f |yBits ju|st as yo|
|00000d20| 75 20 77 6f 75 6c 64 20 | 70 61 73 73 20 61 20 70 |u would |pass a p|
|00000d30| 6f 72 74 42 69 74 73 20 | 66 69 65 6c 64 2e 20 55 |ortBits |field. U|
|00000d40| 6e 66 6f 72 74 75 6e 61 | 74 65 6c 79 2c 20 70 6f |nfortuna|tely, po|
|00000d50| 72 74 50 69 78 4d 61 70 | 20 69 73 20 61 20 68 61 |rtPixMap| is a ha|
|00000d60| 6e 64 6c 65 20 77 68 65 | 72 65 61 73 20 70 6f 72 |ndle whe|reas por|
|00000d70| 74 42 69 74 73 20 69 73 | 20 61 20 42 69 74 4d 61 |tBits is| a BitMa|
|00000d80| 70 2e 20 54 72 69 63 6b | 79 20 74 79 70 65 2d 63 |p. Trick|y type-c|
|00000d90| 61 73 74 69 6e 67 2c 20 | 68 6f 77 65 76 65 72 2c |asting, |however,|
|00000da0| 20 61 6c 6c 6f 77 73 20 | 6f 6e 65 20 74 6f 20 70 | allows |one to p|
|00000db0| 61 73 73 20 69 6e 20 61 | 20 63 47 72 61 66 50 6f |ass in a| cGrafPo|
|00000dc0| 72 74 27 73 20 70 6f 72 | 74 50 69 78 4d 61 70 20 |rt's por|tPixMap |
|00000dd0| 66 69 65 6c 64 2c 20 61 | 73 20 74 68 65 20 66 6f |field, a|s the fo|
|00000de0| 6c 6c 6f 77 69 6e 67 20 | 65 78 61 6d 70 6c 65 73 |llowing |examples|
|00000df0| 20 73 68 6f 77 2e 20 59 | 6f 75 20 6d 75 73 74 20 | show. Y|ou must |
|00000e00| 63 6f 65 72 63 65 20 74 | 68 65 20 63 47 72 61 66 |coerce t|he cGraf|
|00000e10| 50 74 72 20 69 6e 20 74 | 6f 20 61 20 67 72 61 66 |Ptr in t|o a graf|
|00000e20| 50 74 72 20 69 6e 20 6f | 72 64 65 72 20 74 6f 20 |Ptr in o|rder to |
|00000e30| 75 73 65 20 74 68 65 20 | 70 6f 72 74 42 69 74 73 |use the |portBits|
|00000e40| 20 66 69 65 6c 64 2e 0d | 49 6e 20 43 3a 0d 09 43 | field..|In C:..C|
|00000e50| 47 72 61 66 50 74 72 20 | 20 20 63 6f 6c 6f 72 50 |GrafPtr | colorP|
|00000e60| 6f 72 74 3b 20 20 20 2f | 2a 20 47 72 61 70 68 69 |ort; /|* Graphi|
|00000e70| 63 73 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 20 66 |cs envir|onment f|
|00000e80| 6f 72 20 63 6f 6c 6f 72 | 20 6f 66 66 20 73 63 72 |or color| off scr|
|00000e90| 65 65 6e 20 2a 2f 0d 09 | 47 72 61 66 50 74 72 20 |een */..|GrafPtr |
|00000ea0| 20 20 20 73 61 76 65 64 | 50 6f 72 74 3b 20 20 20 | saved|Port; |
|00000eb0| 2f 2a 20 50 6f 69 6e 74 | 65 72 20 74 6f 20 74 68 |/* Point|er to th|
|00000ec0| 65 20 73 61 76 65 64 20 | 67 72 61 70 68 69 63 73 |e saved |graphics|
|00000ed0| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 20 2a 2f 0d | environ|ment */.|
|00000ee0| 09 43 6f 70 79 42 69 74 | 73 28 20 09 26 28 28 47 |.CopyBit|s( .&((G|
|00000ef0| 72 61 66 50 74 72 29 63 | 6f 6c 6f 72 50 6f 72 74 |rafPtr)c|olorPort|
|00000f00| 29 2d 3e 70 6f 72 74 42 | 69 74 73 2c 20 26 73 61 |)->portB|its, &sa|
|00000f10| 76 65 64 50 6f 72 74 2d | 3e 70 6f 72 74 42 69 74 |vedPort-|>portBit|
|00000f20| 73 2c 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |s,. | |
|00000f30| 20 20 20 20 20 20 20 09 | 26 63 6f 6c 6f 72 50 6f | .|&colorPo|
|00000f40| 72 74 2d 3e 70 6f 72 74 | 52 65 63 74 2c 20 26 73 |rt->port|Rect, &s|
|00000f50| 61 76 65 64 50 6f 72 74 | 2d 3e 70 6f 72 74 52 65 |avedPort|->portRe|
|00000f60| 63 74 2c 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ct,. | |
|00000f70| 20 20 20 20 20 20 20 20 | 09 73 72 63 43 6f 70 79 | |.srcCopy|
|00000f80| 2c 20 6e 69 6c 20 09 29 | 3b 0d 49 6e 20 50 61 73 |, nil .)|;.In Pas|
|00000f90| 63 61 6c 3a 0d 09 63 6f | 6c 6f 72 50 6f 72 74 3a |cal:..co|lorPort:|
|00000fa0| 20 20 20 43 47 72 61 66 | 50 74 72 3b 20 20 20 7b | CGraf|Ptr; {|
|00000fb0| 47 72 61 70 68 69 63 73 | 20 65 6e 76 69 72 6f 6e |Graphics| environ|
|00000fc0| 6d 65 6e 74 20 66 6f 72 | 20 63 6f 6c 6f 72 20 6f |ment for| color o|
|00000fd0| 66 66 20 73 63 72 65 65 | 6e 7d 0d 09 73 61 76 65 |ff scree|n}..save|
|00000fe0| 64 50 6f 72 74 3a 20 20 | 20 47 72 61 66 50 74 72 |dPort: | GrafPtr|
|00000ff0| 3b 20 20 20 20 7b 50 6f | 69 6e 74 65 72 20 74 6f |; {Po|inter to|
|00001000| 20 74 68 65 20 73 61 76 | 65 64 20 67 72 61 70 68 | the sav|ed graph|
|00001010| 69 63 73 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 7d |ics envi|ronment}|
|00001020| 0d 09 43 6f 70 79 42 69 | 74 73 28 09 47 72 61 66 |..CopyBi|ts(.Graf|
|00001030| 50 74 72 28 63 6f 6c 6f | 72 50 6f 72 74 29 5e 2e |Ptr(colo|rPort)^.|
|00001040| 70 6f 72 74 42 69 74 73 | 2c 20 73 61 76 65 64 50 |portBits|, savedP|
|00001050| 6f 72 74 5e 2e 70 6f 72 | 74 42 69 74 73 2c 0d 09 |ort^.por|tBits,..|
|00001060| 09 09 63 6f 6c 6f 72 50 | 6f 72 74 5e 2e 70 6f 72 |..colorP|ort^.por|
|00001070| 74 52 65 63 74 2c 20 73 | 61 76 65 64 50 6f 72 74 |tRect, s|avedPort|
|00001080| 5e 2e 70 6f 72 74 52 65 | 63 74 2c 0d 09 09 09 73 |^.portRe|ct,....s|
|00001090| 72 63 43 6f 70 79 2c 20 | 4e 49 4c 29 3b 0d 54 79 |rcCopy, |NIL);.Ty|
|000010a0| 70 65 63 61 73 74 69 6e | 67 20 69 73 20 6e 6f 74 |pecastin|g is not|
|000010b0| 20 74 68 65 20 6f 6e 6c | 79 20 74 72 69 63 6b 65 | the onl|y tricke|
|000010c0| 72 79 20 69 6e 76 6f 6c | 76 65 64 20 68 65 72 65 |ry invol|ved here|
|000010d0| 2e 20 43 6f 70 79 42 69 | 74 73 20 69 73 20 66 61 |. CopyBi|ts is fa|
|000010e0| 63 65 64 20 77 69 74 68 | 20 61 20 6d 61 6a 6f 72 |ced with| a major|
|000010f0| 20 68 65 61 64 61 63 68 | 65 20 69 66 20 79 6f 75 | headach|e if you|
|00001100| 20 74 68 69 6e 6b 20 61 | 62 6f 75 74 20 69 74 2e | think a|bout it.|
|00001110| 20 50 6f 72 74 50 69 78 | 4d 61 70 20 69 73 20 61 | PortPix|Map is a|
|00001120| 20 68 61 6e 64 6c 65 2c | 20 61 6e 64 20 74 68 65 | handle,| and the|
|00001130| 20 70 61 72 61 6d 65 74 | 65 72 73 20 6f 66 20 43 | paramet|ers of C|
|00001140| 6f 70 79 42 69 74 73 20 | 65 78 70 65 63 74 20 61 |opyBits |expect a|
|00001150| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 61 20 70 69 | pointer| to a pi|
|00001160| 78 4d 61 70 2e 20 54 6f | 20 73 6f 6c 76 65 20 74 |xMap. To| solve t|
|00001170| 68 69 73 2c 20 43 6f 70 | 79 42 69 74 73 20 68 61 |his, Cop|yBits ha|
|00001180| 73 20 61 20 6c 69 74 74 | 6c 65 20 61 6c 67 6f 72 |s a litt|le algor|
|00001190| 69 74 68 6d 20 69 6e 20 | 69 74 20 77 68 69 63 68 |ithm in |it which|
|000011a0| 20 64 65 72 65 66 65 72 | 65 6e 63 65 73 20 74 68 | derefer|ences th|
|000011b0| 65 20 70 6f 69 6e 74 65 | 72 20 74 77 69 63 65 20 |e pointe|r twice |
|000011c0| 69 66 20 79 6f 75 20 70 | 61 73 73 20 69 6e 20 61 |if you p|ass in a|
|000011d0| 20 70 6f 72 74 42 69 74 | 73 2e 20 54 6f 20 69 64 | portBit|s. To id|
|000011e0| 65 6e 74 69 66 79 20 74 | 68 65 20 74 79 70 65 20 |entify t|he type |
|000011f0| 6f 66 20 70 6f 69 6e 74 | 65 72 20 69 74 20 69 73 |of point|er it is|
|00001200| 20 67 65 74 74 69 6e 67 | 2c 20 43 6f 70 79 42 69 | getting|, CopyBi|
|00001210| 74 73 20 6c 6f 6f 6b 73 | 20 61 74 20 74 68 65 20 |ts looks| at the |
|00001220| 74 6f 70 20 74 77 6f 20 | 62 69 74 73 20 6f 66 20 |top two |bits of |
|00001230| 74 68 65 20 72 6f 77 42 | 79 74 65 73 20 66 69 65 |the rowB|ytes fie|
|00001240| 6c 64 2e 20 41 73 20 6d | 65 6e 74 69 6f 6e 65 64 |ld. As m|entioned|
|00001250| 20 61 62 6f 76 65 2c 20 | 74 68 65 20 74 6f 70 20 | above, |the top |
|00001260| 62 69 74 20 64 69 73 74 | 69 6e 67 75 69 73 68 65 |bit dist|inguishe|
|00001270| 73 20 62 65 74 77 65 65 | 6e 20 61 20 70 69 78 4d |s betwee|n a pixM|
|00001280| 61 70 20 61 6e 64 20 61 | 20 62 69 74 4d 61 70 2e |ap and a| bitMap.|
|00001290| 20 54 68 65 20 6e 65 78 | 74 20 62 69 74 20 74 65 | The nex|t bit te|
|000012a0| 6c 6c 73 20 43 6f 70 79 | 42 69 74 73 20 69 66 20 |lls Copy|Bits if |
|000012b0| 74 68 65 20 70 69 78 4d | 61 70 20 69 73 20 70 61 |the pixM|ap is pa|
|000012c0| 72 74 20 6f 66 20 61 20 | 63 47 72 61 66 50 6f 72 |rt of a |cGrafPor|
|000012d0| 74 20 6f 72 20 6e 6f 74 | 20 28 73 65 65 20 46 69 |t or not| (see Fi|
|000012e0| 67 2e 20 31 29 2e 20 49 | 66 20 74 68 65 20 74 77 |g. 1). I|f the tw|
|000012f0| 6f 20 62 69 74 73 20 61 | 72 65 20 73 65 74 2c 20 |o bits a|re set, |
|00001300| 74 68 65 6e 20 43 6f 70 | 79 42 69 74 73 20 6b 6e |then Cop|yBits kn|
|00001310| 6f 77 73 20 69 74 20 69 | 73 20 62 65 69 6e 67 20 |ows it i|s being |
|00001320| 70 61 73 73 65 64 20 61 | 20 70 69 78 4d 61 70 48 |passed a| pixMapH|
|00001330| 61 6e 64 6c 65 2c 20 61 | 6e 64 20 69 74 20 77 69 |andle, a|nd it wi|
|00001340| 6c 6c 20 70 65 72 66 6f | 72 6d 20 74 68 65 20 64 |ll perfo|rm the d|
|00001350| 65 72 65 66 65 72 65 6e | 63 65 2e 0d 46 69 67 75 |ereferen|ce..Figu|
|00001360| 72 65 20 31 2e 20 43 6f | 70 79 42 69 74 27 73 20 |re 1. Co|pyBit's |
|00001370| 42 69 74 4d 61 70 20 70 | 61 72 61 6d 65 74 65 72 |BitMap p|arameter|
|00001380| 73 0d 46 69 67 75 72 65 | 20 31 2e 20 64 69 73 70 |s.Figure| 1. disp|
|00001390| 6c 61 79 73 20 74 68 72 | 65 65 20 74 79 70 65 73 |lays thr|ee types|
|000013a0| 20 6f 66 20 43 6f 70 79 | 42 69 74 27 73 20 42 69 | of Copy|Bit's Bi|
|000013b0| 74 4d 61 70 20 70 61 72 | 61 6d 65 74 65 72 73 2e |tMap par|ameters.|
|000013c0| 20 45 61 63 68 20 70 6f | 69 6e 74 73 20 74 6f 20 | Each po|ints to |
|000013d0| 61 20 65 69 74 68 65 72 | 20 61 20 62 69 74 4d 61 |a either| a bitMa|
|000013e0| 70 2c 20 70 69 78 4d 61 | 70 2c 20 6f 72 20 74 68 |p, pixMa|p, or th|
|000013f0| 65 20 70 6f 72 74 50 69 | 78 4d 61 70 20 66 69 65 |e portPi|xMap fie|
|00001400| 6c 64 20 69 6e 20 61 20 | 63 47 72 61 66 50 6f 72 |ld in a |cGrafPor|
|00001410| 74 2e 20 41 66 74 65 72 | 20 34 20 62 79 74 65 73 |t. After| 4 bytes|
|00001420| 2c 20 74 68 65 20 74 6f | 70 20 74 77 6f 20 62 69 |, the to|p two bi|
|00001430| 74 73 20 6f 66 20 74 68 | 65 20 66 69 66 74 68 20 |ts of th|e fifth |
|00001440| 62 79 74 65 20 69 64 65 | 6e 74 69 66 69 65 73 20 |byte ide|ntifies |
|00001450| 74 68 65 20 70 6f 69 6e | 74 65 72 2e 0d 57 68 79 |the poin|ter..Why|
|00001460| 20 4c 61 72 67 65 20 50 | 69 78 4d 61 70 73 20 43 | Large P|ixMaps C|
|00001470| 72 61 73 68 20 41 70 70 | 73 0d 41 73 20 79 6f 75 |rash App|s.As you|
|00001480| 20 63 61 6e 20 73 65 65 | 2c 20 74 68 65 20 74 6f | can see|, the to|
|00001490| 70 20 74 77 6f 20 62 69 | 74 73 20 6f 66 20 72 6f |p two bi|ts of ro|
|000014a0| 77 42 79 74 65 73 20 68 | 61 76 65 20 73 70 65 63 |wBytes h|ave spec|
|000014b0| 69 66 69 63 20 66 75 6e | 63 74 69 6f 6e 73 2e 20 |ific fun|ctions. |
|000014c0| 54 68 65 20 68 69 67 68 | 65 73 74 20 62 69 74 20 |The high|est bit |
|000014d0| 64 69 73 74 69 6e 67 75 | 69 73 68 65 73 20 62 65 |distingu|ishes be|
|000014e0| 74 77 65 65 6e 20 62 69 | 74 4d 61 70 73 20 61 6e |tween bi|tMaps an|
|000014f0| 64 20 70 69 78 4d 61 70 | 73 2e 20 54 68 65 20 73 |d pixMap|s. The s|
|00001500| 65 63 6f 6e 64 20 68 69 | 67 68 65 73 74 20 62 69 |econd hi|ghest bi|
|00001510| 74 20 69 64 65 6e 74 69 | 66 69 65 73 20 74 68 65 |t identi|fies the|
|00001520| 20 74 79 70 65 20 6f 66 | 20 42 69 74 4d 61 70 20 | type of| BitMap |
|00001530| 70 61 72 61 6d 65 74 65 | 72 2e 20 49 66 20 69 74 |paramete|r. If it|
|00001540| 20 69 73 20 73 65 74 2c | 20 61 20 64 65 72 65 66 | is set,| a deref|
|00001550| 65 72 65 6e 63 65 20 69 | 73 20 61 70 70 6c 69 65 |erence i|s applie|
|00001560| 64 3b 20 69 66 20 6e 6f | 74 2c 20 6e 6f 74 68 69 |d; if no|t, nothi|
|00001570| 6e 67 20 68 61 70 70 65 | 6e 73 20 74 6f 20 74 68 |ng happe|ns to th|
|00001580| 65 20 70 69 78 4d 61 70 | 2e 20 20 49 66 20 79 6f |e pixMap|. If yo|
|00001590| 75 72 20 70 69 78 4d 61 | 70 20 75 73 65 73 20 74 |ur pixMa|p uses t|
|000015a0| 68 65 20 73 65 63 6f 6e | 64 20 68 69 67 68 65 73 |he secon|d highes|
|000015b0| 74 20 62 69 74 20 6f 66 | 20 72 6f 77 42 79 74 65 |t bit of| rowByte|
|000015c0| 73 20 61 6e 64 20 79 6f | 75 20 70 61 73 73 20 69 |s and yo|u pass i|
|000015d0| 74 20 69 6e 74 6f 20 61 | 20 51 75 69 63 6b 44 72 |t into a| QuickDr|
|000015e0| 61 77 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2c 20 |aw appli|cation, |
|000015f0| 69 74 20 77 69 6c 6c 20 | 74 68 69 6e 6b 20 69 74 |it will |think it|
|00001600| 20 69 73 20 70 61 72 74 | 20 6f 66 20 61 20 63 47 | is part| of a cG|
|00001610| 72 61 66 50 6f 72 74 2c | 20 61 6e 64 20 77 69 6c |rafPort,| and wil|
|00001620| 6c 20 70 65 72 66 6f 72 | 6d 20 61 20 68 61 6e 64 |l perfor|m a hand|
|00001630| 6c 65 20 64 65 72 65 66 | 65 72 65 6e 63 65 20 6f |le deref|erence o|
|00001640| 6e 20 79 6f 75 72 20 62 | 61 73 65 41 64 64 72 2e |n your b|aseAddr.|
|00001650| 20 54 68 65 20 66 69 72 | 73 74 20 64 65 72 65 66 | The fir|st deref|
|00001660| 65 72 65 6e 63 65 20 77 | 69 6c 6c 20 67 65 74 20 |erence w|ill get |
|00001670| 74 6f 20 76 69 64 65 6f | 20 6d 65 6d 6f 72 79 2c |to video| memory,|
|00001680| 20 62 75 74 20 74 68 65 | 20 73 65 63 6f 6e 64 20 | but the| second |
|00001690| 64 65 72 65 66 65 72 65 | 6e 63 65 20 77 69 6c 6c |derefere|nce will|
|000016a0| 20 62 65 20 6f 6e 20 77 | 68 61 74 65 76 65 72 20 | be on w|hatever |
|000016b0| 72 61 6e 64 6f 6d 20 76 | 69 64 65 6f 20 64 61 74 |random v|ideo dat|
|000016c0| 61 20 68 61 70 70 65 6e | 73 20 74 6f 20 62 65 20 |a happen|s to be |
|000016d0| 74 68 65 72 65 2e 20 59 | 6f 75 72 20 61 70 70 6c |there. Y|our appl|
|000016e0| 69 63 61 74 69 6f 6e 20 | 77 69 6c 6c 20 6c 61 6e |ication |will lan|
|000016f0| 64 20 75 70 20 69 6e 20 | 4e 65 76 65 72 2d 4e 65 |d up in |Never-Ne|
|00001700| 76 65 72 20 6c 61 6e 64 | 2e 0d 49 66 20 79 6f 75 |ver land|..If you|
|00001710| 20 63 72 65 61 74 65 20 | 70 69 63 74 75 72 65 73 | create |pictures|
|00001720| 20 77 68 69 63 68 20 63 | 61 6e 20 62 65 20 72 65 | which c|an be re|
|00001730| 64 69 73 74 72 69 62 75 | 74 65 64 2c 20 6c 65 61 |distribu|ted, lea|
|00001740| 76 65 20 74 68 65 20 74 | 6f 70 20 74 77 6f 20 62 |ve the t|op two b|
|00001750| 69 74 73 20 6f 66 20 72 | 6f 77 42 79 74 65 73 20 |its of r|owBytes |
|00001760| 61 6c 6f 6e 65 2e 20 42 | 65 6c 6f 77 2c 20 49 20 |alone. B|elow, I |
|00001770| 77 69 6c 6c 20 69 64 65 | 6e 74 69 66 79 20 6f 6e |will ide|ntify on|
|00001780| 65 20 6d 65 74 68 6f 64 | 20 6f 66 20 67 6f 69 6e |e method| of goin|
|00001790| 67 20 61 72 6f 75 6e 64 | 20 74 68 69 73 20 6c 69 |g around| this li|
|000017a0| 6d 69 74 2c 20 62 75 74 | 20 69 74 20 77 69 6c 6c |mit, but| it will|
|000017b0| 20 6f 6e 6c 79 20 77 6f | 72 6b 20 69 6e 20 73 70 | only wo|rk in sp|
|000017c0| 65 63 69 66 69 63 20 73 | 69 74 75 61 74 69 6f 6e |ecific s|ituation|
|000017d0| 73 2e 20 49 66 20 79 6f | 75 20 72 65 61 64 20 70 |s. If yo|u read p|
|000017e0| 69 63 74 75 72 65 73 2c | 20 6c 6f 6f 6b 20 62 65 |ictures,| look be|
|000017f0| 6c 6f 77 20 66 6f 72 20 | 72 65 61 64 69 6e 67 20 |low for |reading |
|00001800| 70 69 63 74 75 72 65 73 | 20 77 68 69 63 68 20 67 |pictures| which g|
|00001810| 6f 20 61 72 6f 75 6e 64 | 20 74 68 69 73 20 6c 69 |o around| this li|
|00001820| 6d 69 74 2e 0d 49 64 65 | 6e 74 69 66 79 69 6e 67 |mit..Ide|ntifying|
|00001830| 20 43 47 72 61 66 50 6f | 72 74 73 20 61 6e 64 20 | CGrafPo|rts and |
|00001840| 47 57 6f 72 6c 64 73 20 | 69 6e 20 61 20 44 65 62 |GWorlds |in a Deb|
|00001850| 75 67 67 65 72 0d 59 6f | 75 27 6c 6c 20 6e 6f 74 |ugger.Yo|u'll not|
|00001860| 69 63 65 20 69 6e 20 46 | 69 67 75 72 65 20 31 20 |ice in F|igure 1 |
|00001870| 74 68 61 74 20 74 68 65 | 20 70 6f 72 74 56 65 72 |that the| portVer|
|00001880| 73 69 6f 6e 20 66 69 65 | 6c 64 20 6f 66 20 61 20 |sion fie|ld of a |
|00001890| 63 47 72 61 66 50 6f 72 | 74 20 63 6f 69 6e 63 69 |cGrafPor|t coinci|
|000018a0| 64 65 73 20 77 69 74 68 | 20 74 68 65 20 6c 6f 63 |des with| the loc|
|000018b0| 61 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 72 6f 77 |ation of| the row|
|000018c0| 42 79 74 65 73 20 66 69 | 65 6c 64 20 6f 66 20 61 |Bytes fi|eld of a|
|000018d0| 20 67 72 61 66 50 6f 72 | 74 2e 20 52 65 6d 65 6d | grafPor|t. Remem|
|000018e0| 62 65 72 2c 20 61 20 63 | 47 72 61 66 50 6f 72 74 |ber, a c|GrafPort|
|000018f0| 20 68 61 73 20 74 68 65 | 20 73 61 6d 65 20 73 69 | has the| same si|
|00001900| 7a 65 20 61 73 20 61 20 | 67 72 61 66 50 6f 72 74 |ze as a |grafPort|
|00001910| 2e 20 44 75 72 69 6e 67 | 20 64 65 62 75 67 67 69 |. During| debuggi|
|00001920| 6e 67 2c 20 79 6f 75 20 | 63 61 6e 20 75 73 65 20 |ng, you |can use |
|00001930| 74 68 65 20 73 61 6d 65 | 20 69 6e 66 6f 72 6d 61 |the same| informa|
|00001940| 74 69 6f 6e 20 77 68 69 | 63 68 20 43 6f 70 79 42 |tion whi|ch CopyB|
|00001950| 69 74 73 20 75 73 65 73 | 20 74 6f 20 69 64 65 6e |its uses| to iden|
|00001960| 74 69 66 79 20 63 47 72 | 61 66 50 6f 72 74 73 2e |tify cGr|afPorts.|
|00001970| 0d 49 66 20 79 6f 75 20 | 75 73 65 20 61 20 67 72 |.If you |use a gr|
|00001980| 61 66 50 6f 72 74 20 74 | 65 6d 70 6c 61 74 65 20 |afPort t|emplate |
|00001990| 74 6f 20 64 69 73 70 6c | 61 79 20 6d 65 6d 6f 72 |to displ|ay memor|
|000019a0| 79 20 66 6f 72 20 61 6e | 20 75 6e 6b 6e 6f 77 6e |y for an| unknown|
|000019b0| 20 67 72 61 66 50 6f 72 | 74 2c 20 79 6f 75 20 63 | grafPor|t, you c|
|000019c0| 61 6e 20 74 65 6c 6c 20 | 69 66 20 69 74 20 69 73 |an tell |if it is|
|000019d0| 20 61 20 63 47 72 61 66 | 50 6f 72 74 20 62 65 63 | a cGraf|Port bec|
|000019e0| 61 75 73 65 20 74 68 65 | 20 72 6f 77 42 79 74 65 |ause the| rowByte|
|000019f0| 73 20 77 69 6c 6c 20 62 | 65 20 65 71 75 61 6c 20 |s will b|e equal |
|00001a00| 74 6f 20 30 78 43 30 30 | 30 2e 20 54 68 65 20 30 |to 0xC00|0. The 0|
|00001a10| 78 43 20 63 6f 72 72 65 | 73 70 6f 6e 64 73 20 74 |xC corre|sponds t|
|00001a20| 6f 20 74 68 65 20 74 77 | 6f 20 68 69 67 68 20 62 |o the tw|o high b|
|00001a30| 69 74 73 20 62 65 69 6e | 67 20 73 65 74 20 69 6e |its bein|g set in|
|00001a40| 20 74 68 65 20 70 6f 72 | 74 56 65 72 73 69 6f 6e | the por|tVersion|
|00001a50| 20 66 69 65 6c 64 20 6f | 66 20 61 20 63 47 72 61 | field o|f a cGra|
|00001a60| 66 50 6f 72 74 2e 20 53 | 69 6e 63 65 20 74 68 65 |fPort. S|ince the|
|00001a70| 73 65 20 62 69 74 73 20 | 63 61 6e 20 6e 6f 74 20 |se bits |can not |
|00001a80| 62 65 20 73 65 74 20 69 | 6e 20 61 20 67 72 61 66 |be set i|n a graf|
|00001a90| 50 6f 72 74 2c 20 79 6f | 75 20 6b 6e 6f 77 20 79 |Port, yo|u know y|
|00001aa0| 6f 75 20 68 61 76 65 20 | 61 20 63 47 72 61 66 50 |ou have |a cGrafP|
|00001ab0| 6f 72 74 2e 20 49 6e 20 | 61 64 64 69 74 69 6f 6e |ort. In |addition|
|00001ac0| 2c 20 69 66 20 74 68 65 | 20 62 6f 74 74 6f 6d 20 |, if the| bottom |
|00001ad0| 62 69 74 20 6f 66 20 74 | 68 65 20 70 6f 72 74 56 |bit of t|he portV|
|00001ae0| 65 72 73 69 6f 6e 20 66 | 69 65 6c 64 20 69 73 20 |ersion f|ield is |
|00001af0| 73 65 74 2c 20 74 68 65 | 6e 20 69 74 20 69 73 20 |set, the|n it is |
|00001b00| 61 20 67 57 6f 72 6c 64 | 2e 20 54 68 75 73 2c 20 |a gWorld|. Thus, |
|00001b10| 69 66 20 79 6f 75 72 20 | 72 6f 77 42 79 74 65 73 |if your |rowBytes|
|00001b20| 20 66 69 65 6c 64 20 68 | 61 73 20 61 20 76 61 6c | field h|as a val|
|00001b30| 75 65 20 6f 66 20 30 78 | 43 30 30 31 2c 20 74 68 |ue of 0x|C001, th|
|00001b40| 65 6e 20 79 6f 75 20 6b | 6e 6f 77 20 79 6f 75 20 |en you k|now you |
|00001b50| 68 61 76 65 20 61 20 67 | 57 6f 72 6c 64 2e 0d 45 |have a g|World..E|
|00001b60| 76 65 6e 20 6f 72 20 6f | 64 64 20 72 6f 77 42 79 |ven or o|dd rowBy|
|00001b70| 74 65 73 3f 0d 53 69 6e | 63 65 20 74 68 65 20 64 |tes?.Sin|ce the d|
|00001b80| 61 77 6e 20 6f 66 20 4d | 61 63 69 6e 74 6f 73 68 |awn of M|acintosh|
|00001b90| 2c 20 69 74 20 68 61 73 | 20 62 65 65 6e 20 73 61 |, it has| been sa|
|00001ba0| 69 64 20 74 68 61 74 20 | 72 6f 77 42 79 74 65 73 |id that |rowBytes|
|00001bb0| 20 73 68 6f 75 6c 64 20 | 62 65 20 65 76 65 6e 20 | should |be even |
|00001bc0| 62 65 63 61 75 73 65 20 | 65 61 63 68 20 72 6f 77 |because |each row|
|00001bd0| 20 6f 66 20 61 20 70 69 | 78 4d 61 70 20 6d 75 73 | of a pi|xMap mus|
|00001be0| 74 20 63 6f 6e 74 61 69 | 6e 20 61 6e 20 69 6e 74 |t contai|n an int|
|00001bf0| 65 67 72 61 6c 20 6e 75 | 6d 62 65 72 20 6f 66 20 |egral nu|mber of |
|00001c00| 77 6f 72 64 73 2e 20 41 | 63 74 75 61 6c 6c 79 2c |words. A|ctually,|
|00001c10| 20 72 6f 77 42 79 74 65 | 73 20 68 61 73 20 74 6f | rowByte|s has to|
|00001c20| 20 62 65 20 65 76 65 6e | 20 62 65 63 61 75 73 65 | be even| because|
|00001c30| 20 51 75 69 63 6b 44 72 | 61 77 20 61 63 63 65 73 | QuickDr|aw acces|
|00001c40| 73 65 73 20 62 69 74 6d | 61 70 20 64 61 74 61 20 |ses bitm|ap data |
|00001c50| 75 73 69 6e 67 20 77 6f | 72 64 20 6f 72 20 6c 6f |using wo|rd or lo|
|00001c60| 6e 67 20 6f 70 65 72 61 | 6e 64 73 2c 20 61 6e 64 |ng opera|nds, and|
|00001c70| 20 74 68 65 73 65 20 67 | 65 6e 65 72 61 74 65 20 | these g|enerate |
|00001c80| 61 64 64 72 65 73 73 20 | 65 72 72 6f 72 73 20 77 |address |errors w|
|00001c90| 68 65 6e 20 69 74 20 72 | 65 66 65 72 65 6e 63 65 |hen it r|eference|
|00001ca0| 73 20 61 6e 20 6f 64 64 | 20 61 64 64 72 65 73 73 |s an odd| address|
|00001cb0| 20 6f 6e 20 74 68 65 20 | 36 38 30 30 30 2c 20 77 | on the |68000, w|
|00001cc0| 68 69 63 68 20 77 6f 75 | 6c 64 20 68 61 70 70 65 |hich wou|ld happe|
|00001cd0| 6e 20 69 66 20 72 6f 77 | 42 79 74 65 73 20 69 73 |n if row|Bytes is|
|00001ce0| 20 6f 64 64 2e 20 54 68 | 65 20 36 38 30 32 30 20 | odd. Th|e 68020 |
|00001cf0| 61 6e 64 20 6c 61 74 65 | 72 20 68 61 6e 64 6c 65 |and late|r handle|
|00001d00| 20 6f 64 64 20 61 64 64 | 72 65 73 73 65 73 20 66 | odd add|resses f|
|00001d10| 69 6e 65 2c 20 61 6e 64 | 20 73 6f 20 72 6f 77 42 |ine, and| so rowB|
|00001d20| 79 74 65 73 20 63 61 6e | 20 62 65 20 6f 64 64 2e |ytes can| be odd.|
|00001d30| 20 42 75 74 2c 20 69 74 | 20 69 73 20 73 74 69 6c | But, it| is stil|
|00001d40| 6c 20 72 65 63 6f 6d 6d | 65 6e 64 65 64 20 74 68 |l recomm|ended th|
|00001d50| 61 74 20 72 6f 77 42 79 | 74 65 73 20 62 65 20 65 |at rowBy|tes be e|
|00001d60| 76 65 6e 2c 20 62 65 63 | 61 75 73 65 20 6d 69 73 |ven, bec|ause mis|
|00001d70| 61 6c 69 67 6e 65 64 20 | 61 63 63 65 73 73 65 73 |aligned |accesses|
|00001d80| 20 69 6e 63 75 72 20 61 | 20 70 65 72 66 6f 72 6d | incur a| perform|
|00001d90| 61 6e 63 65 20 70 65 6e | 61 6c 74 79 2e 0d 47 6f |ance pen|alty..Go|
|00001da0| 69 6e 67 20 41 72 6f 75 | 6e 64 20 54 68 65 20 4c |ing Arou|nd The L|
|00001db0| 69 6d 69 74 20 54 6f 64 | 61 79 0d 49 6e 20 74 68 |imit Tod|ay.In th|
|00001dc0| 65 20 77 6f 72 6c 64 20 | 74 6f 64 61 79 20 61 70 |e world |today ap|
|00001dd0| 70 6c 69 63 61 74 69 6f | 6e 73 20 68 61 76 65 20 |plicatio|ns have |
|00001de0| 61 20 64 69 66 66 69 63 | 75 6c 74 79 20 62 65 63 |a diffic|ulty bec|
|00001df0| 61 75 73 65 20 74 68 65 | 79 20 63 61 6e 20 65 69 |ause the|y can ei|
|00001e00| 74 68 65 72 20 72 65 66 | 75 73 65 20 74 6f 20 63 |ther ref|use to c|
|00001e10| 72 65 61 74 65 20 70 69 | 78 4d 61 70 73 20 61 73 |reate pi|xMaps as|
|00001e20| 20 62 69 67 20 61 73 20 | 75 73 65 72 73 20 77 61 | big as |users wa|
|00001e30| 6e 74 20 6f 72 20 63 61 | 75 73 65 20 63 72 61 73 |nt or ca|use cras|
|00001e40| 68 65 73 20 62 79 20 63 | 6f 6e 66 75 73 69 6e 67 |hes by c|onfusing|
|00001e50| 20 43 6f 70 79 42 69 74 | 73 20 69 6e 74 6f 20 64 | CopyBit|s into d|
|00001e60| 65 72 65 66 65 72 65 6e | 63 69 6e 67 20 74 68 65 |ereferen|cing the|
|00001e70| 20 62 61 73 65 20 61 64 | 64 72 65 73 73 20 6f 66 | base ad|dress of|
|00001e80| 20 74 68 65 20 70 69 78 | 4d 61 70 20 69 66 20 72 | the pix|Map if r|
|00001e90| 6f 77 42 79 74 65 73 20 | 65 78 63 65 65 64 73 20 |owBytes |exceeds |
|00001ea0| 74 68 65 20 65 73 74 61 | 62 6c 69 73 68 65 64 20 |the esta|blished |
|00001eb0| 6c 69 6d 69 74 20 6f 66 | 20 6c 65 73 73 20 74 68 |limit of| less th|
|00001ec0| 61 6e 20 30 78 34 30 30 | 30 2e 20 53 6f 6d 65 20 |an 0x400|0. Some |
|00001ed0| 77 65 6c 6c 2d 6b 6e 6f | 77 6e 20 69 6d 61 67 65 |well-kno|wn image|
|00001ee0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 20 63 72 | applica|tions cr|
|00001ef0| 65 61 74 65 20 73 75 63 | 68 20 70 69 78 4d 61 70 |eate suc|h pixMap|
|00001f00| 73 20 77 69 74 68 20 62 | 61 64 20 72 65 73 75 6c |s with b|ad resul|
|00001f10| 74 73 2e 20 52 65 61 64 | 69 6e 67 20 6c 61 72 67 |ts. Read|ing larg|
|00001f20| 65 20 70 69 78 4d 61 70 | 73 20 63 61 75 73 65 73 |e pixMap|s causes|
|00001f30| 20 74 68 65 20 63 72 61 | 73 68 2c 20 62 75 74 20 | the cra|sh, but |
|00001f40| 61 70 70 6c 69 63 61 74 | 69 6f 6e 73 20 77 68 69 |applicat|ions whi|
|00001f50| 63 68 20 63 72 65 61 74 | 65 20 74 68 65 6d 20 61 |ch creat|e them a|
|00001f60| 72 65 20 74 68 65 20 75 | 6c 74 69 6d 61 74 65 20 |re the u|ltimate |
|00001f70| 63 75 6c 70 72 69 74 2e | 0d 41 73 20 66 61 72 20 |culprit.|.As far |
|00001f80| 61 73 20 61 20 73 6f 6c | 75 74 69 6f 6e 20 66 6f |as a sol|ution fo|
|00001f90| 72 20 74 68 65 20 70 72 | 65 73 65 6e 74 2c 20 61 |r the pr|esent, a|
|00001fa0| 20 70 6f 73 73 69 62 69 | 6c 69 74 79 20 69 73 20 | possibi|lity is |
|00001fb0| 74 6f 20 62 79 70 61 73 | 73 20 74 68 65 20 43 6f |to bypas|s the Co|
|00001fc0| 70 79 42 69 74 73 20 64 | 65 72 65 66 65 72 65 6e |pyBits d|ereferen|
|00001fd0| 63 69 6e 67 20 61 6c 67 | 6f 72 69 74 68 6d 2e 20 |cing alg|orithm. |
|00001fe0| 59 6f 75 20 63 61 6e 20 | 63 61 6c 6c 20 53 74 64 |You can |call Std|
|00001ff0| 42 69 74 73 20 64 69 72 | 65 63 74 6c 79 20 73 69 |Bits dir|ectly si|
|00002000| 6e 63 65 20 69 74 20 64 | 6f 65 73 20 6e 6f 74 20 |nce it d|oes not |
|00002010| 6d 69 6e 64 20 64 65 61 | 6c 69 6e 67 20 77 69 74 |mind dea|ling wit|
|00002020| 68 20 6c 61 72 67 65 72 | 20 74 68 61 6e 20 6c 65 |h larger| than le|
|00002030| 67 61 6c 20 72 6f 77 42 | 79 74 65 73 2e 20 54 68 |gal rowB|ytes. Th|
|00002040| 65 20 70 72 6f 62 6c 65 | 6d 20 68 65 72 65 20 69 |e proble|m here i|
|00002050| 73 20 74 68 61 74 20 74 | 68 65 20 64 65 73 74 69 |s that t|he desti|
|00002060| 6e 61 74 69 6f 6e 20 69 | 73 20 69 6d 70 6c 69 65 |nation i|s implie|
|00002070| 64 20 61 6e 64 20 74 68 | 65 20 61 70 70 6c 69 63 |d and th|e applic|
|00002080| 61 74 69 6f 6e 20 68 61 | 73 20 74 6f 20 6d 61 6b |ation ha|s to mak|
|00002090| 65 20 73 75 72 65 20 74 | 68 61 74 20 65 76 65 72 |e sure t|hat ever|
|000020a0| 79 74 68 69 6e 67 20 69 | 73 20 61 6c 72 69 67 68 |ything i|s alrigh|
|000020b0| 74 2e 20 41 6c 73 6f 2c | 20 69 66 20 74 68 65 20 |t. Also,| if the |
|000020c0| 64 65 73 74 69 6e 61 74 | 69 6f 6e 20 73 70 61 6e |destinat|ion span|
|000020d0| 73 20 6d 75 6c 74 69 70 | 6c 65 20 64 65 76 69 63 |s multip|le devic|
|000020e0| 65 73 2c 20 74 68 65 20 | 61 70 70 6c 69 63 61 74 |es, the |applicat|
|000020f0| 69 6f 6e 20 68 61 73 20 | 74 6f 20 64 69 76 69 64 |ion has |to divid|
|00002100| 65 20 74 68 65 20 74 61 | 73 6b 20 2c 20 74 61 72 |e the ta|sk , tar|
|00002110| 67 65 74 69 6e 67 20 65 | 61 63 68 20 64 65 76 69 |geting e|ach devi|
|00002120| 63 65 20 61 74 20 74 68 | 65 20 74 69 6d 65 2e 20 |ce at th|e time. |
|00002130| 53 65 65 20 74 68 65 20 | 44 65 76 69 63 65 4c 6f |See the |DeviceLo|
|00002140| 6f 70 20 70 72 6f 63 65 | 64 75 72 65 20 69 6e 20 |op proce|dure in |
|00002150| 49 4d 20 56 49 20 66 6f | 72 20 69 64 65 61 73 20 |IM VI fo|r ideas |
|00002160| 6f 6e 20 74 68 69 73 2e | 20 0d 41 20 73 65 63 6f |on this.| .A seco|
|00002170| 6e 64 20 70 6f 73 73 69 | 62 69 6c 69 74 79 20 69 |nd possi|bility i|
|00002180| 73 20 74 6f 20 70 61 74 | 63 68 20 43 6f 70 79 42 |s to pat|ch CopyB|
|00002190| 69 74 73 20 69 6e 20 73 | 69 74 75 61 74 69 6f 6e |its in s|ituation|
|000021a0| 73 20 77 68 65 72 65 20 | 79 6f 75 20 6b 6e 6f 77 |s where |you know|
|000021b0| 20 69 74 20 63 61 6e 20 | 6f 6e 6c 79 20 62 65 20 | it can |only be |
|000021c0| 66 65 64 20 70 69 78 4d | 61 70 73 2e 20 44 72 61 |fed pixM|aps. Dra|
|000021d0| 77 50 69 63 74 75 72 65 | 20 74 69 6d 65 20 69 73 |wPicture| time is|
|000021e0| 20 6f 6e 65 20 65 78 61 | 6d 70 6c 65 2e 20 59 6f | one exa|mple. Yo|
|000021f0| 75 20 6e 65 65 64 20 74 | 6f 20 70 61 74 63 68 20 |u need t|o patch |
|00002200| 72 69 67 68 74 20 62 65 | 66 6f 72 65 20 44 72 61 |right be|fore Dra|
|00002210| 77 50 69 63 74 75 72 65 | 20 62 65 63 61 75 73 65 |wPicture| because|
|00002220| 20 79 6f 75 20 6b 6e 6f | 77 20 61 20 70 69 63 74 | you kno|w a pict|
|00002230| 75 72 65 20 77 69 6c 6c | 20 63 6f 6e 74 61 69 6e |ure will| contain|
|00002240| 20 6f 6e 6c 79 20 70 69 | 78 4d 61 70 73 2e 20 54 | only pi|xMaps. T|
|00002250| 68 61 74 20 69 73 2c 20 | 79 6f 75 20 6b 6e 6f 77 |hat is, |you know|
|00002260| 20 43 6f 70 79 42 69 74 | 73 20 77 69 6c 6c 20 6e | CopyBit|s will n|
|00002270| 6f 74 20 62 65 20 70 61 | 73 73 65 64 20 70 6f 72 |ot be pa|ssed por|
|00002280| 74 42 69 74 73 2e 20 49 | 66 20 72 6f 77 42 79 74 |tBits. I|f rowByt|
|00002290| 65 73 20 69 73 20 74 6f | 6f 20 62 69 67 2c 20 74 |es is to|o big, t|
|000022a0| 68 65 6e 20 74 68 65 20 | 61 70 70 6c 69 63 61 74 |hen the |applicat|
|000022b0| 69 6f 6e 20 63 6f 75 6c | 64 20 73 70 6c 69 74 20 |ion coul|d split |
|000022c0| 74 68 65 20 6a 6f 62 2c | 20 62 61 6e 64 69 6e 67 |the job,| banding|
|000022d0| 20 74 68 65 20 69 6d 61 | 67 65 20 76 65 72 74 69 | the ima|ge verti|
|000022e0| 63 61 6c 6c 79 20 75 6e | 74 69 6c 20 74 68 65 20 |cally un|til the |
|000022f0| 72 65 73 75 6c 74 69 6e | 67 20 72 6f 77 42 79 74 |resultin|g rowByt|
|00002300| 65 73 20 76 61 6c 75 65 | 73 20 66 61 6c 6c 20 77 |es value|s fall w|
|00002310| 69 74 68 69 6e 20 72 61 | 6e 67 65 2e 20 41 66 74 |ithin ra|nge. Aft|
|00002320| 65 72 20 74 68 65 20 44 | 72 61 77 50 69 63 74 75 |er the D|rawPictu|
|00002330| 72 65 20 63 61 6c 6c 2c | 20 79 6f 75 20 77 69 6c |re call,| you wil|
|00002340| 6c 20 6e 65 65 64 20 74 | 6f 20 75 6e 70 61 74 63 |l need t|o unpatc|
|00002350| 68 2e 0d 47 6f 69 6e 67 | 20 41 72 6f 75 6e 64 20 |h..Going| Around |
|00002360| 54 68 65 20 4c 69 6d 69 | 74 20 54 6f 6d 6f 72 72 |The Limi|t Tomorr|
|00002370| 6f 77 0d 41 6c 6c 20 74 | 68 69 73 20 69 73 20 6b |ow.All t|his is k|
|00002380| 6e 6f 77 6e 20 62 79 20 | 65 6e 67 69 6e 65 65 72 |nown by |engineer|
|00002390| 69 6e 67 20 61 6e 64 20 | 73 6f 6d 65 20 66 75 74 |ing and |some fut|
|000023a0| 75 72 65 20 64 69 72 65 | 63 74 69 6f 6e 73 20 61 |ure dire|ctions a|
|000023b0| 72 65 20 61 6c 72 65 61 | 64 79 20 62 65 69 6e 67 |re alrea|dy being|
|000023c0| 20 73 74 75 64 69 65 64 | 2c 20 66 6f 72 20 65 78 | studied|, for ex|
|000023d0| 61 6d 70 6c 65 20 69 74 | 20 69 73 20 70 6f 73 73 |ample it| is poss|
|000023e0| 69 62 6c 65 20 74 68 61 | 74 20 61 20 6e 65 78 74 |ible tha|t a next|
|000023f0| 20 72 65 6c 65 61 73 65 | 20 6f 66 20 51 75 69 63 | release| of Quic|
|00002400| 6b 44 72 61 77 20 77 69 | 6c 6c 20 73 75 70 70 6f |kDraw wi|ll suppo|
|00002410| 72 74 20 70 69 78 4d 61 | 70 20 77 69 74 68 20 61 |rt pixMa|p with a|
|00002420| 20 72 6f 77 42 79 74 65 | 73 20 63 6f 6e 73 74 61 | rowByte|s consta|
|00002430| 6e 74 20 76 61 6c 75 65 | 20 69 6e 64 69 63 61 74 |nt value| indicat|
|00002440| 69 6e 67 20 74 68 61 74 | 20 74 68 65 20 72 65 61 |ing that| the rea|
|00002450| 6c 20 72 6f 77 42 79 74 | 65 73 20 69 73 20 63 6f |l rowByt|es is co|
|00002460| 6e 74 61 69 6e 65 64 20 | 69 6e 20 74 68 65 20 70 |ntained |in the p|
|00002470| 6c 61 6e 65 42 79 74 65 | 73 20 66 69 65 6c 64 20 |laneByte|s field |
|00002480| 69 6e 73 74 65 61 64 3b | 20 49 20 61 6d 20 73 75 |instead;| I am su|
|00002490| 72 65 20 79 6f 75 20 63 | 61 6e 20 69 6d 6d 65 64 |re you c|an immed|
|000024a0| 69 61 74 65 6c 79 20 74 | 68 69 6e 6b 20 6f 66 20 |iately t|hink of |
|000024b0| 63 61 73 65 73 20 77 68 | 65 72 65 20 74 68 69 73 |cases wh|ere this|
|000024c0| 20 69 73 20 61 6c 73 6f | 20 67 6f 69 6e 67 20 74 | is also| going t|
|000024d0| 6f 20 63 61 75 73 65 20 | 70 72 6f 62 6c 65 6d 73 |o cause |problems|
|000024e0| 20 62 75 74 20 77 65 20 | 74 68 69 6e 6b 20 74 68 | but we |think th|
|000024f0| 61 74 20 74 68 65 20 70 | 72 6f 62 6c 65 6d 73 20 |at the p|roblems |
|00002500| 61 72 65 20 6c 65 73 73 | 20 69 6d 70 6f 72 74 61 |are less| importa|
|00002510| 6e 74 20 74 68 61 6e 20 | 74 68 65 20 6c 69 6d 69 |nt than |the limi|
|00002520| 74 61 74 69 6f 6e 20 62 | 65 69 6e 67 20 6f 76 65 |tation b|eing ove|
|00002530| 72 63 6f 6d 65 2e 0d 43 | 6f 6e 63 6c 75 73 69 6f |rcome..C|onclusio|
|00002540| 6e 0d 54 68 65 20 6c 69 | 6d 69 74 61 74 69 6f 6e |n.The li|mitation|
|00002550| 73 20 6f 66 20 72 6f 77 | 42 79 74 65 73 20 69 73 |s of row|Bytes is|
|00002560| 20 62 65 63 6f 6d 69 6e | 67 20 61 6e 20 69 6e 63 | becomin|g an inc|
|00002570| 72 65 61 73 69 6e 67 6c | 79 20 70 61 69 6e 66 75 |reasingl|y painfu|
|00002580| 6c 20 74 68 69 6e 67 2c | 20 61 70 70 6c 69 63 61 |l thing,| applica|
|00002590| 74 69 6f 6e 73 20 63 61 | 6e 20 65 61 73 69 6c 79 |tions ca|n easily|
|000025a0| 20 63 72 65 61 74 65 20 | 70 69 78 4d 61 70 73 20 | create |pixMaps |
|000025b0| 28 61 6e 64 20 50 49 43 | 54 73 29 20 74 68 61 74 |(and PIC|Ts) that|
|000025c0| 20 65 78 63 65 65 64 20 | 74 68 65 20 6c 69 6d 69 | exceed |the limi|
|000025d0| 74 20 6f 66 20 30 78 34 | 30 30 30 2e 20 49 74 20 |t of 0x4|000. It |
|000025e0| 69 73 20 70 6f 73 73 69 | 62 6c 65 20 66 6f 72 20 |is possi|ble for |
|000025f0| 61 6e 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 74 |an appli|cation t|
|00002600| 6f 20 70 61 74 63 68 20 | 43 6f 70 79 42 69 74 73 |o patch |CopyBits|
|00002610| 20 69 6e 20 6f 72 64 65 | 72 20 74 6f 20 77 6f 72 | in orde|r to wor|
|00002620| 6b 20 61 72 6f 75 6e 64 | 20 74 68 69 73 20 6c 69 |k around| this li|
|00002630| 6d 69 74 61 74 69 6f 6e | 20 62 75 74 20 74 68 65 |mitation| but the|
|00002640| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 77 72 69 | applica|tion wri|
|00002650| 74 65 72 20 68 61 73 20 | 74 6f 20 64 65 63 69 64 |ter has |to decid|
|00002660| 65 20 77 68 61 74 20 69 | 73 20 61 70 70 72 6f 70 |e what i|s approp|
|00002670| 72 69 61 74 65 20 66 6f | 72 20 65 61 63 68 20 73 |riate fo|r each s|
|00002680| 65 74 20 6f 66 20 63 6f | 6e 64 69 74 69 6f 6e 73 |et of co|nditions|
|00002690| 2e 20 54 68 75 73 2c 20 | 72 6f 77 42 79 74 65 73 |. Thus, |rowBytes|
|000026a0| 20 68 61 73 20 74 72 61 | 64 69 74 69 6f 6e 61 6c | has tra|ditional|
|000026b0| 6c 79 20 62 65 65 6e 20 | 73 61 69 64 20 74 6f 20 |ly been |said to |
|000026c0| 68 61 76 65 20 61 20 6d | 61 78 69 6d 75 6d 20 76 |have a m|aximum v|
|000026d0| 61 6c 75 65 20 6f 66 20 | 30 78 33 46 46 45 2e 20 |alue of |0x3FFE. |
|000026e0| 42 75 74 2c 20 69 66 20 | 79 6f 75 72 20 61 70 70 |But, if |your app|
|000026f0| 6c 69 63 61 74 69 6f 6e | 20 61 76 6f 69 64 73 20 |lication| avoids |
|00002700| 74 68 65 20 75 73 65 20 | 6f 66 20 43 6f 70 79 42 |the use |of CopyB|
|00002710| 69 74 73 2c 20 43 6f 70 | 79 4d 61 73 6b 2c 20 61 |its, Cop|yMask, a|
|00002720| 6e 64 20 43 6f 70 79 44 | 65 65 70 4d 61 73 6b 2c |nd CopyD|eepMask,|
|00002730| 20 74 68 65 6e 20 79 6f | 75 20 63 61 6e 20 75 73 | then yo|u can us|
|00002740| 65 20 61 20 72 6f 77 42 | 79 74 65 73 20 76 61 6c |e a rowB|ytes val|
|00002750| 75 65 20 6f 66 20 30 78 | 37 46 46 46 20 77 69 74 |ue of 0x|7FFF wit|
|00002760| 68 6f 75 74 20 68 61 72 | 6d 2e 20 48 6f 77 65 76 |hout har|m. Howev|
|00002770| 65 72 2c 20 74 68 6f 73 | 65 20 73 69 74 75 61 74 |er, thos|e situat|
|00002780| 69 6f 6e 73 20 61 72 65 | 20 72 61 72 65 2c 20 61 |ions are| rare, a|
|00002790| 6e 64 2c 20 66 6f 72 20 | 61 6c 6c 20 70 72 61 63 |nd, for |all prac|
|000027a0| 74 69 63 61 6c 20 6d 61 | 74 74 65 72 73 2c 20 74 |tical ma|tters, t|
|000027b0| 68 65 20 6c 69 6d 69 74 | 20 6f 66 20 72 6f 77 42 |he limit| of rowB|
|000027c0| 79 74 65 73 20 69 73 20 | 30 78 33 46 46 45 2e 0d |ytes is |0x3FFE..|
|000027d0| 46 75 72 74 68 65 72 20 | 52 65 66 65 72 65 6e 63 |Further |Referenc|
|000027e0| 65 3a 0d a5 09 49 6e 73 | 69 64 65 20 4d 61 63 69 |e:...Ins|ide Maci|
|000027f0| 6e 74 6f 73 68 2c 20 56 | 6f 6c 75 6d 65 20 49 2c |ntosh, V|olume I,|
|00002800| 20 51 75 69 63 6b 44 72 | 61 77 0d a5 09 49 6e 73 | QuickDr|aw...Ins|
|00002810| 69 64 65 20 4d 61 63 69 | 6e 74 6f 73 68 2c 20 56 |ide Maci|ntosh, V|
|00002820| 6f 6c 75 6d 65 20 56 20 | 26 20 56 49 2c 20 43 6f |olume V |& VI, Co|
|00002830| 6c 6f 72 20 51 75 69 63 | 6b 44 72 61 77 0d a5 09 |lor Quic|kDraw...|
|00002840| 64 20 65 20 76 20 65 20 | 6c 20 6f 20 70 20 31 2c |d e v e |l o p 1,|
|00002850| 20 22 52 65 61 6c 69 73 | 74 69 63 20 43 6f 6c 6f | "Realis|tic Colo|
|00002860| 72 20 46 6f 72 20 52 65 | 61 6c 2d 57 6f 72 6c 64 |r For Re|al-World|
|00002870| 20 41 70 70 6c 69 63 61 | 74 69 6f 6e 73 22 0d 17 | Applica|tions"..|
|00002880| 06 00 00 00 00 03 48 02 | 52 00 11 02 ff 0c 00 ff |......H.|R.......|
|00002890| ff ff ff 00 00 00 00 00 | 00 00 00 02 52 00 00 03 |........|....R...|
|000028a0| 48 00 00 00 00 00 00 00 | 1e 00 01 00 0a 00 00 00 |H.......|........|
|000028b0| 00 03 49 02 52 00 20 02 | c1 00 58 02 c1 02 1d 00 |..I.R. .|..X.....|
|000028c0| 2c 00 08 00 14 05 54 69 | 6d 65 73 00 03 00 14 00 |,.....Ti|mes.....|
|000028d0| 0d 00 0a 00 2e 00 04 00 | 00 00 00 00 28 02 d6 00 |........|....(...|
|000028e0| 5a 1c 51 44 20 31 35 20 | 2d 20 52 6f 77 42 79 74 |Z.QD 15 |- RowByt|
|000028f0| 65 73 20 52 65 76 65 61 | 6c 65 64 20 49 49 00 00 |es Revea|led II..|
|00002900| 28 02 d6 02 04 01 31 00 | 29 05 05 20 6f 66 20 35 |(.....1.|).. of 5|
|00002910| 00 00 28 02 ec 00 5a 09 | 51 75 69 63 6b 44 72 61 |..(...Z.|QuickDra|
|00002920| 77 00 a0 00 82 00 01 00 | 0a 00 2f 00 5a 00 81 02 |w.......|../.Z...|
|00002930| 23 00 07 00 00 00 00 00 | 08 00 0a 00 09 30 49 88 |#.......|.....0I.|
|00002940| 3a b5 9c f0 39 00 22 00 | 7b 02 1a 00 00 00 09 ff |:...9.".|{.......|
|00002950| ff ff ff ff ff ff ff 00 | 23 00 00 00 a0 00 c4 00 |........|#.......|
|00002960| a1 00 64 00 0a 4f 4e 4c | 4e 00 66 00 00 01 fe 00 |..d..ONL|N.f.....|
|00002970| a0 00 8c 00 a1 00 64 00 | 31 64 72 77 32 00 02 01 |......d.|1drw2...|
|00002980| c9 00 2d 01 e1 01 5f 00 | 00 80 00 00 00 00 00 00 |..-..._.|........|
|00002990| 00 00 00 00 00 00 00 00 | 00 00 00 ff ff ff ff ff |........|........|
|000029a0| ff 00 01 00 00 01 8f 00 | 00 00 00 00 a1 00 96 00 |........|........|
|000029b0| 0c 01 00 00 00 02 78 00 | 00 00 00 00 00 00 a1 00 |......x.|........|
|000029c0| 64 00 10 64 72 77 32 00 | 3a 00 05 00 00 00 00 00 |d..drw2.|:.......|
|000029d0| 01 00 00 00 a1 00 64 00 | 0e 64 72 77 32 00 3a 00 |......d.|.drw2.:.|
|000029e0| 02 00 24 00 00 00 00 00 | a1 00 64 00 34 64 72 77 |..$.....|..d.4drw|
|000029f0| 32 00 3a 00 01 00 03 01 | 00 00 18 00 00 00 00 00 |2.:.....|........|
|00002a00| 00 00 00 00 00 00 01 00 | 01 00 01 00 01 00 00 00 |........|........|
|00002a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a20| 00 00 a1 00 9a 00 08 ff | fa 00 00 00 97 40 00 00 |........|.....@..|
|00002a30| a0 00 98 00 04 01 00 00 | 0d 00 18 00 2e 00 04 00 |........|........|
|00002a40| 00 01 00 00 10 00 52 01 | c9 00 52 01 c9 00 28 00 |......R.|..R...(.|
|00002a50| 42 00 5d 13 4e 65 77 20 | 54 65 63 68 6e 69 63 61 |B.].New |Technica|
|00002a60| 6c 20 4e 6f 74 65 73 00 | a0 00 99 00 a1 00 64 00 |l Notes.|......d.|
|00002a70| 08 64 72 77 32 00 3a 00 | 04 00 a1 14 e3 00 02 00 |.drw2.:.|........|
|00002a80| 01 00 a0 00 97 00 a1 00 | 64 00 31 64 72 77 32 00 |........|d.1drw2.|
|00002a90| 02 02 06 01 65 02 19 01 | f4 00 00 80 00 00 00 00 |....e...|........|
|00002aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 ff ff ff |........|........|
|00002ab0| ff ff ff 00 01 00 00 01 | 50 00 00 00 00 00 a1 00 |........|P.......|
|00002ac0| 96 00 0c 01 00 00 00 02 | 78 00 00 00 00 00 00 00 |........|x.......|
|00002ad0| a1 00 64 00 10 64 72 77 | 32 00 3a 00 05 00 00 00 |..d..drw|2.:.....|
|00002ae0| 00 00 01 00 00 00 a1 00 | 64 00 0e 64 72 77 32 00 |........|d..drw2.|
|00002af0| 3a 00 02 00 24 00 00 00 | 00 00 a1 00 64 00 34 64 |:...$...|....d.4d|
|00002b00| 72 77 32 00 3a 00 01 00 | 03 00 00 00 12 00 00 00 |rw2.:...|........|
|00002b10| 00 00 00 00 00 00 00 00 | 01 00 01 00 01 00 01 00 |........|........|
|00002b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b30| 00 00 00 00 a1 00 9a 00 | 08 ff fb 80 00 00 45 c0 |........|......E.|
|00002b40| 00 00 a0 00 98 00 04 00 | 00 00 0d 00 12 00 28 00 |........|......(.|
|00002b50| 7b 01 95 11 44 65 76 65 | 6c 6f 70 65 72 20 53 75 |{...Deve|loper Su|
|00002b60| 70 70 6f 72 74 00 a0 00 | 99 00 a1 00 64 00 08 64 |pport...|....d..d|
|00002b70| 72 77 32 00 3a 00 04 00 | a1 14 e3 00 02 00 01 00 |rw2.:...|........|
|00002b80| a0 00 97 00 a1 00 64 00 | 60 64 72 77 32 00 03 02 |......d.|`drw2...|
|00002b90| 00 00 2d 02 00 01 ef 00 | 00 00 00 00 00 00 00 02 |..-.....|........|
|00002ba0| 02 00 00 00 00 00 00 00 | 00 00 00 ff ff ff ff ff |........|........|
|00002bb0| ff 00 01 00 01 08 4b 00 | 00 00 00 02 00 01 ef 02 |......K.|........|
|00002bc0| 00 00 2d 00 00 00 00 00 | 00 00 00 00 01 00 14 00 |..-.....|........|
|00002bd0| 0c 00 03 00 02 00 00 00 | 5a 00 01 00 00 00 02 00 |........|Z.......|
|00002be0| 00 00 03 00 0c 00 00 00 | 00 00 07 00 02 00 02 00 |........|........|
|00002bf0| 08 00 08 00 20 00 66 02 | 1c 00 66 00 5a 00 a1 00 |.... .f.|..f.Z...|
|00002c00| 64 00 31 64 72 77 32 00 | 02 01 ca 01 c0 01 fa 01 |d.1drw2.|........|
|00002c10| e9 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c20| 00 00 00 00 00 ff ff ff | ff ff ff 00 01 00 00 01 |........|........|
|00002c30| 4b 00 00 00 00 00 a1 00 | 96 00 0c 01 00 00 00 02 |K.......|........|
|00002c40| 78 00 00 00 00 00 00 00 | a1 00 64 00 10 64 72 77 |x.......|..d..drw|
|00002c50| 32 00 3a 00 05 00 00 00 | 00 00 01 00 00 00 a1 00 |2.:.....|........|
|00002c60| 64 00 0e 64 72 77 32 00 | 3a 00 02 00 24 00 00 00 |d..drw2.|:...$...|
|00002c70| 00 00 a1 00 64 00 34 64 | 72 77 32 00 3a 00 01 00 |....d.4d|rw2.:...|
|00002c80| 03 00 00 00 30 00 00 00 | 00 00 00 00 00 00 00 00 |....0...|........|
|00002c90| 01 00 01 00 01 00 01 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 a1 00 9a 00 |........|........|
|00002cb0| 08 ff f4 00 00 00 13 80 | 00 00 a0 00 98 00 0d 00 |........|........|
|00002cc0| 30 00 28 00 55 01 ef 01 | f0 00 a0 00 99 00 a1 00 |0.(.U...|........|
|00002cd0| 64 00 08 64 72 77 32 00 | 3a 00 04 00 a1 14 e3 00 |d..drw2.|:.......|
|00002ce0| 02 00 01 00 a0 00 97 00 | a1 00 64 00 31 64 72 77 |........|..d.1drw|
|00002cf0| 32 00 02 01 ef 01 e6 01 | fa 01 f0 00 00 00 00 00 |2.......|........|
|00002d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 ff |........|........|
|00002d10| ff ff ff ff ff 00 01 00 | 00 01 00 00 00 00 00 00 |........|........|
|00002d20| a1 00 96 00 0c 01 00 00 | 00 02 78 00 00 00 00 00 |........|..x.....|
|00002d30| 00 00 a1 00 64 00 10 64 | 72 77 32 00 3a 00 05 00 |....d..d|rw2.:...|
|00002d40| 00 00 00 00 01 00 00 00 | a1 00 64 00 0e 64 72 77 |........|..d..drw|
|00002d50| 32 00 3a 00 02 00 24 00 | 00 00 00 00 a1 00 64 00 |2.:...$.|......d.|
|00002d60| 34 64 72 77 32 00 3a 00 | 01 00 03 00 00 00 09 00 |4drw2.:.|........|
|00002d70| 00 00 00 00 00 00 00 00 | 00 00 01 00 01 00 01 00 |........|........|
|00002d80| 01 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d90| 00 00 00 00 00 00 a1 00 | 9a 00 08 ff fd 80 00 00 |........|........|
|00002da0| 04 00 00 00 a0 00 98 00 | 0d 00 09 00 2b 26 09 01 |........|....+&..|
|00002db0| a8 00 a0 00 99 00 a1 00 | 64 00 08 64 72 77 32 00 |........|d..drw2.|
|00002dc0| 3a 00 04 00 a1 14 e3 00 | 02 00 01 00 a0 00 97 00 |:.......|........|
|00002dd0| a1 00 64 00 31 64 72 77 | 32 00 02 01 e5 00 2d 01 |..d.1drw|2.....-.|
|00002de0| f8 00 79 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..y.....|........|
|00002df0| 00 00 00 00 00 00 00 ff | ff ff ff ff ff 00 01 00 |........|........|
|00002e00| 01 01 00 00 00 01 00 00 | a1 00 96 00 0c 01 00 00 |........|........|
|00002e10| 00 02 78 00 00 00 00 00 | 00 00 a1 00 64 00 10 64 |..x.....|....d..d|
|00002e20| 72 77 32 00 3a 00 05 00 | 00 00 00 00 01 00 00 00 |rw2.:...|........|
|00002e30| a1 00 64 00 0e 64 72 77 | 32 00 3a 00 02 00 24 00 |..d..drw|2.:...$.|
|00002e40| 00 00 00 00 a1 00 64 00 | 34 64 72 77 32 00 3a 00 |......d.|4drw2.:.|
|00002e50| 01 00 03 00 00 00 12 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e60| 00 00 01 00 01 00 01 00 | 01 00 00 00 00 00 00 00 |........|........|
|00002e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 a1 00 |........|........|
|00002e80| 9a 00 08 ff fb 80 00 00 | 25 00 00 00 a0 00 98 00 |........|%.......|
|00002e90| 0d 00 12 00 28 00 5a 00 | 5c 09 4d 61 63 69 6e 74 |....(.Z.|\.Macint|
|00002ea0| 6f 73 68 00 a0 00 99 00 | a1 00 64 00 08 64 72 77 |osh.....|..d..drw|
|00002eb0| 32 00 3a 00 04 00 a1 14 | e3 00 02 00 01 00 a0 00 |2.:.....|........|
|00002ec0| 97 00 a0 00 8d 00 a1 00 | 64 00 06 64 72 77 32 00 |........|d..drw2.|
|00002ed0| 44 00 a0 00 83 00 01 00 | 0a 00 00 00 00 03 49 02 |D.......|......I.|
|00002ee0| 52 00 04 01 00 00 2e 00 | 04 00 00 00 00 00 10 00 |R.......|........|
|00002ef0| 01 00 01 00 01 00 01 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|00002f00| 4e 00 64 00 00 00 8d 00 | 5a 00 a0 01 5b 00 28 00 |N.d.....|Z...[.(.|
|00002f10| 9b 00 5a 1c 51 44 20 31 | 35 20 2d 20 52 6f 77 42 |..Z.QD 1|5 - RowB|
|00002f20| 79 74 65 73 20 52 65 76 | 65 61 6c 65 64 20 49 49 |ytes Rev|ealed II|
|00002f30| 00 00 0d 00 0e 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00002f40| 64 00 1d 00 9f 00 5a 00 | ae 00 a5 00 2a 10 09 51 |d.....Z.|....*..Q|
|00002f50| 75 69 63 6b 44 72 61 77 | 00 00 04 00 00 00 0d 00 |uickDraw|........|
|00002f60| 0c 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 00 28 00 |....d..O|NLN.d.(.|
|00002f70| ba 00 5a 00 c6 00 d6 00 | 2a 18 18 57 72 69 74 74 |..Z.....|*..Writt|
|00002f80| 65 6e 20 62 79 3a 42 69 | 6c 6c 20 47 75 73 63 68 |en by:Bi|ll Gusch|
|00002f90| 77 61 6e 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 00 |wan...d.|.ONLN.d.|
|00002fa0| 41 00 ba 01 ec 00 c6 02 | 1c 00 28 00 c3 01 ec 08 |A.......|..(.....|
|00002fb0| 4d 61 79 20 31 39 39 33 | 00 00 a1 00 64 00 10 4f |May 1993|....d..O|
|00002fc0| 4e 4c 4e 00 64 00 4a 00 | d9 00 5a 00 e5 01 92 00 |NLN.d.J.|..Z.....|
|00002fd0| 28 00 e2 00 5a 3e 54 68 | 69 73 20 54 65 63 68 6e |(...Z>Th|is Techn|
|00002fe0| 69 63 61 6c 20 4e 6f 74 | 65 20 64 69 73 63 75 73 |ical Not|e discus|
|00002ff0| 73 65 73 20 74 68 65 20 | 6d 61 78 69 6d 75 6d 20 |ses the |maximum |
|00003000| 72 6f 77 42 79 74 65 73 | 20 76 61 6c 75 65 20 66 |rowBytes| value f|
|00003010| 6f 72 20 61 00 00 2c 00 | 0b 00 02 08 4e 65 77 20 |or a..,.|....New |
|00003020| 59 6f 72 6b 00 00 03 00 | 02 00 a1 00 64 00 10 4f |York....|....d..O|
|00003030| 4e 4c 4e 00 64 00 88 00 | d6 01 92 00 e6 01 96 00 |NLN.d...|........|
|00003040| 28 00 e2 01 92 01 20 00 | 2c 00 0a 00 16 07 43 6f |(..... .|,.....Co|
|00003050| 75 72 69 65 72 00 03 00 | 16 00 a1 00 64 00 10 4f |urier...|....d..O|
|00003060| 4e 4c 4e 00 64 00 89 00 | d8 01 96 00 e4 01 c0 00 |NLN.d...|........|
|00003070| 29 04 06 70 69 78 4d 61 | 70 00 0d 00 12 00 a1 00 |)..pixMa|p.......|
|00003080| 64 00 10 4f 4e 4c 4e 00 | 64 00 8f 00 d5 01 c0 00 |d..ONLN.|d.......|
|00003090| e7 01 cb 00 29 2a 01 2e | 00 00 03 00 14 00 04 01 |....)*..|........|
|000030a0| 00 00 0d 00 0c 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|000030b0| 64 00 91 00 f5 00 5a 01 | 01 00 80 00 28 00 fe 00 |d.....Z.|....(...|
|000030c0| 5a 06 54 6f 70 69 63 73 | 00 00 04 00 00 00 a1 00 |Z.Topics|........|
|000030d0| 64 00 10 4f 4e 4c 4e 00 | 64 00 99 01 01 00 7e 01 |d..ONLN.|d.....~.|
|000030e0| 0d 01 36 00 2b 24 0c 27 | a5 20 57 68 61 74 20 69 |..6.+$.'|. What i|
|000030f0| 73 20 74 68 65 20 6c 61 | 72 67 65 73 74 20 76 61 |s the la|rgest va|
|00003100| 6c 75 65 20 6f 66 20 72 | 6f 77 42 79 74 65 73 00 |lue of r|owBytes.|
|00003110| 0d 00 0a 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 00 |......d.|.ONLN.d.|
|00003120| c0 01 01 01 36 01 0d 01 | 3a 00 29 b8 01 3f 00 00 |....6...|:.)..?..|
|00003130| 0d 00 0c 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 00 |......d.|.ONLN.d.|
|00003140| c3 01 0d 00 7e 01 19 00 | fc 00 28 01 16 00 7e 1b |....~...|..(...~.|
|00003150| a5 20 57 68 79 20 64 6f | 65 73 20 69 74 20 68 61 |. Why do|es it ha|
|00003160| 76 65 20 61 20 6c 69 6d | 69 74 3f 00 a1 00 64 00 |ve a lim|it?...d.|
|00003170| 10 4f 4e 4c 4e 00 64 00 | e0 01 19 00 7e 01 25 01 |.ONLN.d.|....~.%.|
|00003180| 18 00 2a 0c 20 a5 20 48 | 6f 77 20 64 6f 20 79 6f |..*. . H|ow do yo|
|00003190| 75 20 69 6e 63 72 65 61 | 73 65 20 74 68 65 20 6c |u increa|se the l|
|000031a0| 69 6d 69 74 3f 00 07 00 | 01 00 01 00 20 01 31 00 |imit?...|.... .1.|
|000031b0| 58 01 31 02 1d 00 04 01 | 00 00 0d 00 0e 00 a1 00 |X.1.....|........|
|000031c0| 64 00 10 4f 4e 4c 4e 00 | 64 01 03 01 4a 00 5a 01 |d..ONLN.|d...J.Z.|
|000031d0| 59 00 ad 00 28 01 56 00 | 5a 0c 49 6e 74 72 6f 64 |Y...(.V.|Z.Introd|
|000031e0| 75 63 74 69 6f 6e 00 00 | 04 00 00 00 0d 00 0c 00 |uction..|........|
|000031f0| 06 00 02 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00003200| 64 01 10 01 66 00 5a 01 | 72 01 b2 00 2a 19 45 54 |d...f.Z.|r...*.ET|
|00003210| 68 69 73 20 74 65 63 68 | 6e 69 63 61 6c 20 6e 6f |his tech|nical no|
|00003220| 74 65 20 63 6f 6e 63 65 | 72 6e 73 20 61 70 70 6c |te conce|rns appl|
|00003230| 69 63 61 74 69 6f 6e 73 | 20 77 68 69 63 68 20 63 |ications| which c|
|00003240| 72 65 61 74 65 20 61 6e | 64 20 72 65 61 64 20 76 |reate an|d read v|
|00003250| 65 72 79 20 00 00 06 00 | 03 00 00 00 a1 00 64 00 |ery ....|......d.|
|00003260| 10 4f 4e 4c 4e 00 64 01 | 55 01 66 01 b2 01 72 01 |.ONLN.d.|U.f...r.|
|00003270| cf 00 28 01 6f 01 b2 06 | 6c 61 72 67 65 20 00 00 |..(.o...|large ..|
|00003280| 03 00 16 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 01 |......d.|.ONLN.d.|
|00003290| 5b 01 65 01 cf 01 71 02 | 00 00 29 1d 07 70 69 78 |[.e...q.|..)..pix|
|000032a0| 4d 61 70 73 00 00 03 00 | 14 00 a1 00 64 00 10 4f |Maps....|....d..O|
|000032b0| 4e 4c 4e 00 64 01 62 01 | 66 02 00 01 72 02 1c 00 |NLN.d.b.|f...r...|
|000032c0| 29 31 05 2e 20 54 68 65 | 00 00 03 00 16 00 06 00 |)1.. The|........|
|000032d0| 00 00 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 01 |......d.|.ONLN.d.|
|000032e0| 68 01 72 00 5a 01 7e 00 | 92 00 28 01 7c 00 5a 08 |h.r.Z.~.|..(.|.Z.|
|000032f0| 72 6f 77 42 79 74 65 73 | 00 00 03 00 14 00 a1 00 |rowBytes|........|
|00003300| 64 00 10 4f 4e 4c 4e 00 | 64 01 70 01 73 00 92 01 |d..ONLN.|d.p.s...|
|00003310| 7f 00 ad 00 29 38 07 20 | 66 69 65 6c 64 20 00 00 |....)8. |field ..|
|00003320| 06 00 01 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00003330| 64 01 77 01 73 00 ad 01 | 7f 01 46 00 29 1b 22 64 |d.w.s...|..F.)."d|
|00003340| 65 66 69 6e 65 73 20 74 | 68 65 20 6c 69 6d 69 74 |efines t|he limit|
|00003350| 73 20 6f 66 20 74 68 65 | 20 6c 61 72 67 65 73 74 |s of the| largest|
|00003360| 20 00 03 00 16 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 | .......|d..ONLN.|
|00003370| 64 01 99 01 72 01 46 01 | 7e 01 70 00 29 99 06 70 |d...r.F.|~.p.)..p|
|00003380| 69 78 4d 61 70 00 03 00 | 14 00 a1 00 64 00 10 4f |ixMap...|....d..O|
|00003390| 4e 4c 4e 00 64 01 9f 01 | 73 01 70 01 7f 02 1c 00 |NLN.d...|s.p.....|
|000033a0| 29 2a 23 2e 20 46 6f 72 | 20 61 70 70 6c 69 63 61 |)*#. For| applica|
|000033b0| 74 69 6f 6e 73 20 77 68 | 69 63 68 20 75 73 65 20 |tions wh|ich use |
|000033c0| 33 32 2d 42 69 74 00 00 | 06 00 02 00 00 00 a1 00 |32-Bit..|........|
|000033d0| 64 00 10 4f 4e 4c 4e 00 | 64 01 c3 01 80 00 5a 01 |d..ONLN.|d.....Z.|
|000033e0| 8c 01 19 00 28 01 89 00 | 5a 27 51 75 69 63 6b 44 |....(...|Z'QuickD|
|000033f0| 72 61 77 2c 20 74 68 69 | 73 20 6c 69 6d 69 74 20 |raw, thi|s limit |
|00003400| 69 73 20 77 65 6c 6c 2d | 64 65 66 69 6e 65 64 3a |is well-|defined:|
|00003410| 20 00 03 00 16 00 06 00 | 03 00 00 00 a1 00 64 00 | .......|......d.|
|00003420| 10 4f 4e 4c 4e 00 64 01 | ea 01 7f 01 19 01 8b 01 |.ONLN.d.|........|
|00003430| 43 00 29 bf 06 30 78 33 | 46 46 45 00 03 00 14 00 |C.)..0x3|FFE.....|
|00003440| a1 00 64 00 10 4f 4e 4c | 4e 00 64 01 f0 01 80 01 |..d..ONL|N.d.....|
|00003450| 43 01 8c 02 1c 00 29 2a | 28 2e 20 48 6f 77 65 76 |C.....)*|(. Howev|
|00003460| 65 72 2c 20 61 20 66 65 | 77 20 61 70 70 6c 69 63 |er, a fe|w applic|
|00003470| 61 74 69 6f 6e 73 20 77 | 61 6e 74 20 74 6f 20 67 |ations w|ant to g|
|00003480| 6f 00 06 00 00 00 00 00 | a1 00 64 00 10 4f 4e 4c |o.......|..d..ONL|
|00003490| 4e 00 64 02 19 01 8c 00 | 5a 01 98 01 a9 00 28 01 |N.d.....|Z.....(.|
|000034a0| 95 00 5a 48 62 65 79 6f | 6e 64 20 74 68 69 73 20 |..ZHbeyo|nd this |
|000034b0| 6c 69 6d 69 74 2c 20 61 | 6e 64 20 75 6e 64 65 72 |limit, a|nd under|
|000034c0| 20 73 6f 6d 65 20 65 78 | 74 72 65 6d 65 6c 79 20 | some ex|tremely |
|000034d0| 63 6f 6e 74 72 6f 6c 6c | 65 64 20 73 69 74 75 61 |controll|ed situa|
|000034e0| 74 69 6f 6e 73 2c 20 74 | 68 69 73 20 00 00 06 00 |tions, t|his ....|
|000034f0| 01 00 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 02 |......d.|.ONLN.d.|
|00003500| 61 01 8c 01 a9 01 98 02 | 1c 00 28 01 95 01 a9 18 |a.......|..(.....|
|00003510| 6c 69 6d 69 74 20 63 61 | 6e 20 62 65 20 65 78 74 |limit ca|n be ext|
|00003520| 65 6e 64 65 64 20 74 6f | 00 00 03 00 16 00 a1 00 |ended to|........|
|00003530| 64 00 10 4f 4e 4c 4e 00 | 64 02 7a 01 98 00 5a 01 |d..ONLN.|d.z...Z.|
|00003540| a4 00 8b 00 28 01 a2 00 | 5a 07 30 78 37 46 46 45 |....(...|Z.0x7FFE|
|00003550| 2e 00 03 00 14 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00003560| 64 02 81 01 99 00 8b 01 | a5 01 04 00 29 31 18 20 |d.......|....)1. |
|00003570| 54 68 69 73 20 6e 6f 74 | 65 20 65 78 70 6c 61 69 |This not|e explai|
|00003580| 6e 73 20 77 68 79 20 00 | 06 00 02 00 00 00 a1 00 |ns why .|........|
|00003590| 64 00 10 4f 4e 4c 4e 00 | 64 02 99 01 99 01 04 01 |d..ONLN.|d.......|
|000035a0| a5 02 1c 00 29 79 39 74 | 68 65 20 6c 69 6d 69 74 |....)y9t|he limit|
|000035b0| 20 65 78 69 73 74 73 2c | 20 61 6e 64 20 70 72 6f | exists,| and pro|
|000035c0| 70 6f 73 65 73 20 61 20 | 66 65 77 20 64 69 66 66 |poses a |few diff|
|000035d0| 69 63 75 6c 74 20 6d 65 | 74 68 6f 64 73 20 74 6f |icult me|thods to|
|000035e0| 00 00 06 00 00 00 00 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|000035f0| 4e 00 64 02 d3 01 a6 00 | 5a 01 b2 00 f9 00 28 01 |N.d.....|Z.....(.|
|00003600| af 00 5a 22 65 78 63 65 | 65 64 20 74 68 69 73 20 |..Z"exce|ed this |
|00003610| 6c 69 6d 69 74 2e 20 41 | 6c 6f 6e 67 20 74 68 65 |limit. A|long the|
|00003620| 20 77 61 79 2c 20 00 00 | 06 00 01 00 00 00 a1 00 | way, ..|........|
|00003630| 64 00 10 4f 4e 4c 4e 00 | 64 02 f5 01 a6 00 f9 01 |d..ONLN.|d.......|
|00003640| b2 01 88 00 29 9f 1d 70 | 72 6f 70 65 72 20 70 61 |....)..p|roper pa|
|00003650| 72 61 6d 65 74 65 72 20 | 70 61 73 73 69 6e 67 20 |rameter |passing |
|00003660| 66 6f 72 20 00 00 03 00 | 16 00 a1 00 64 00 10 4f |for ....|....d..O|
|00003670| 4e 4c 4e 00 64 03 12 01 | a5 01 88 01 b1 01 c0 00 |NLN.d...|........|
|00003680| 29 8f 08 43 6f 70 79 42 | 69 74 73 00 03 00 14 00 |)..CopyB|its.....|
|00003690| a1 00 64 00 10 4f 4e 4c | 4e 00 64 03 1a 01 a6 01 |..d..ONL|N.d.....|
|000036a0| c0 01 b2 02 1c 00 29 38 | 13 20 69 73 20 64 69 73 |......)8|. is dis|
|000036b0| 63 75 73 73 65 64 20 61 | 6e 64 20 61 00 00 06 00 |cussed a|nd a....|
|000036c0| 00 00 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 03 |......d.|.ONLN.d.|
|000036d0| 2e 01 b2 00 5a 01 be 00 | fb 00 28 01 bb 00 5a 21 |....Z...|..(...Z!|
|000036e0| 66 65 77 20 64 65 62 75 | 67 67 69 6e 67 20 74 69 |few debu|gging ti|
|000036f0| 70 73 20 61 72 65 20 74 | 68 72 6f 77 6e 20 69 6e |ps are t|hrown in|
|00003700| 2e 00 04 01 00 00 0d 00 | 0e 00 a1 00 64 00 10 4f |........|....d..O|
|00003710| 4e 4c 4e 00 64 03 50 01 | d6 00 5a 01 e5 01 55 00 |NLN.d.P.|..Z...U.|
|00003720| 2a 27 24 4c 61 72 67 65 | 73 74 20 73 69 7a 65 20 |*'$Large|st size |
|00003730| 6f 66 20 72 6f 77 42 79 | 74 65 73 20 6f 66 20 61 |of rowBy|tes of a|
|00003740| 20 70 69 78 4d 61 70 00 | 03 00 16 00 04 00 00 00 | pixMap.|........|
|00003750| 0d 00 0c 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 03 |......d.|.ONLN.d.|
|00003760| 75 01 f1 00 5a 01 fd 00 | 92 00 2a 19 08 72 6f 77 |u...Z...|..*..row|
|00003770| 42 79 74 65 73 00 03 00 | 14 00 a1 00 64 00 10 4f |Bytes...|....d..O|
|00003780| 4e 4c 4e 00 64 03 7d 01 | f2 00 92 01 fe 00 95 00 |NLN.d.}.|........|
|00003790| 29 38 01 20 00 00 06 00 | 01 00 00 00 a1 00 64 00 |)8. ....|......d.|
|000037a0| 10 4f 4e 4c 4e 00 64 03 | 7e 01 f2 00 95 01 fe 01 |.ONLN.d.|~.......|
|000037b0| 6a 00 29 03 2e 69 73 20 | 69 6d 70 6f 72 74 61 6e |j.)..is |importan|
|000037c0| 74 20 62 65 63 61 75 73 | 65 20 69 74 20 64 65 66 |t becaus|e it def|
|000037d0| 69 6e 65 73 20 74 68 65 | 20 73 69 7a 65 20 6f 66 |ines the| size of|
|000037e0| 20 61 20 00 03 00 16 00 | a1 00 64 00 10 4f 4e 4c | a .....|..d..ONL|
|000037f0| 4e 00 64 03 ac 01 f1 01 | 6a 01 fd 01 db 00 29 d5 |N.d.....|j.....).|
|00003800| 10 70 69 78 4d 61 70 2e | 20 72 6f 77 42 79 74 65 |.pixMap.| rowByte|
|00003810| 73 00 03 00 14 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |s.......|d..ONLN.|
|00003820| 64 03 bc 01 f2 01 db 01 | fe 02 1c 00 29 71 0e 20 |d.......|....)q. |
|00003830| 68 61 64 20 61 20 6c 61 | 72 67 65 73 74 00 06 00 |had a la|rgest...|
|00003840| 00 00 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 03 |......d.|.ONLN.d.|
|00003850| cb 01 ff 00 5a 02 0b 00 | 7c 00 28 02 08 00 5a 08 |....Z...||.(...Z.|
|00003860| 73 69 7a 65 20 6f 66 20 | 00 00 03 00 16 00 a1 00 |size of |........|
|00003870| 64 00 10 4f 4e 4c 4e 00 | 64 03 d3 01 fe 00 7c 02 |d..ONLN.|d.....|.|
|00003880| 0a 00 a6 00 29 22 06 30 | 78 31 46 46 45 00 03 00 |....)".0|x1FFE...|
|00003890| 14 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 03 d9 01 |....d..O|NLN.d...|
|000038a0| ff 00 a6 02 0b 01 d6 00 | 29 2a 3e 20 75 70 20 74 |........|)*> up t|
|000038b0| 68 72 6f 75 67 68 20 43 | 6f 6c 6f 72 20 51 75 69 |hrough C|olor Qui|
|000038c0| 63 6b 44 72 61 77 2e 20 | 54 68 65 20 74 6f 70 20 |ckDraw. |The top |
|000038d0| 74 68 72 65 65 20 62 69 | 74 73 20 77 65 72 65 20 |three bi|ts were |
|000038e0| 72 65 73 65 72 76 65 64 | 2e 00 06 00 01 00 00 00 |reserved|........|
|000038f0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 04 19 02 18 00 |..d..ONL|N.d.....|
|00003900| 5a 02 24 01 01 00 28 02 | 21 00 5a 20 56 65 72 73 |Z.$...(.|!.Z Vers|
|00003910| 69 6f 6e 20 31 2e 30 20 | 6f 66 20 33 32 2d 42 69 |ion 1.0 |of 32-Bi|
|00003920| 74 20 51 75 69 63 6b 44 | 72 61 77 20 00 00 06 00 |t QuickD|raw ....|
|00003930| 02 00 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 04 |......d.|.ONLN.d.|
|00003940| 39 02 18 01 01 02 24 01 | 6e 00 29 a7 17 65 78 74 |9.....$.|n.)..ext|
|00003950| 65 6e 64 65 64 20 74 68 | 61 74 20 6c 69 6d 69 74 |ended th|at limit|
|00003960| 20 74 6f 20 00 00 03 00 | 16 00 a1 00 64 00 10 4f | to ....|....d..O|
|00003970| 4e 4c 4e 00 64 04 50 02 | 17 01 6e 02 23 01 98 00 |NLN.d.P.|..n.#...|
|00003980| 29 6d 06 30 78 33 46 46 | 45 00 03 00 14 00 a1 00 |)m.0x3FF|E.......|
|00003990| 64 00 10 4f 4e 4c 4e 00 | 64 04 56 02 18 01 98 02 |d..ONLN.|d.V.....|
|000039a0| 24 02 1c 00 29 2a 1b 3a | 20 6f 6e 6c 79 20 74 68 |$...)*.:| only th|
|000039b0| 65 20 74 6f 70 20 74 77 | 6f 20 62 69 74 73 20 61 |e top tw|o bits a|
|000039c0| 72 65 00 00 06 00 01 00 | 00 00 a1 00 64 00 10 4f |re......|....d..O|
|000039d0| 4e 4c 4e 00 64 04 72 02 | 24 00 5a 02 30 01 2c 00 |NLN.d.r.|$.Z.0.,.|
|000039e0| 28 02 2d 00 5a 2a 72 65 | 73 65 72 76 65 64 2e 20 |(.-.Z*re|served. |
|000039f0| 51 75 69 63 6b 44 72 61 | 77 20 75 73 65 73 20 74 |QuickDra|w uses t|
|00003a00| 68 65 20 74 77 6f 20 62 | 69 74 73 20 66 6f 72 20 |he two b|its for |
|00003a10| 00 00 06 00 02 00 00 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|00003a20| 4e 00 64 04 9c 02 24 01 | 2c 02 30 02 1c 00 29 d2 |N.d...$.|,.0...).|
|00003a30| 32 69 64 65 6e 74 69 66 | 69 63 61 74 69 6f 6e 20 |2identif|ication |
|00003a40| 70 75 72 70 6f 73 65 73 | 2e 20 54 68 65 20 74 6f |purposes|. The to|
|00003a50| 70 20 62 69 74 20 64 69 | 73 74 69 6e 67 75 69 73 |p bit di|stinguis|
|00003a60| 68 65 73 00 06 00 00 00 | 00 00 a1 00 64 00 10 4f |hes.....|....d..O|
|00003a70| 4e 4c 4e 00 64 04 cf 02 | 31 00 5a 02 3d 00 8c 00 |NLN.d...|1.Z.=...|
|00003a80| 28 02 3a 00 5a 0a 62 65 | 74 77 65 65 6e 20 61 20 |(.:.Z.be|tween a |
|00003a90| 00 00 06 00 01 00 00 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|00003aa0| 4e 00 64 04 d9 02 31 00 | 8c 02 3d 00 d2 00 29 32 |N.d...1.|..=...)2|
|00003ab0| 0d 70 69 78 4d 61 70 20 | 61 6e 64 20 61 20 00 00 |.pixMap |and a ..|
|00003ac0| 03 00 16 00 0d 00 0a 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|00003ad0| 4e 00 64 04 e6 02 31 00 | d2 02 3d 00 f6 00 29 46 |N.d...1.|..=...)F|
|00003ae0| 06 62 69 74 4d 61 70 00 | 03 00 14 00 0d 00 0c 00 |.bitMap.|........|
|00003af0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 04 ec 02 31 00 |..d..ONL|N.d...1.|
|00003b00| f6 02 3d 01 4d 00 29 24 | 14 2e 20 49 66 20 74 68 |..=.M.)$|.. If th|
|00003b10| 65 20 74 6f 70 20 62 69 | 74 20 6f 66 20 00 03 00 |e top bi|t of ...|
|00003b20| 16 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 05 00 02 |....d..O|NLN.d...|
|00003b30| 30 01 4d 02 3c 01 85 00 | 29 57 08 72 6f 77 42 79 |0.M.<...|)W.rowBy|
|00003b40| 74 65 73 00 03 00 14 00 | a1 00 64 00 10 4f 4e 4c |tes.....|..d..ONL|
|00003b50| 4e 00 64 05 08 02 31 01 | 85 02 3d 02 1c 00 29 38 |N.d...1.|..=...)8|
|00003b60| 1d 20 69 73 20 73 65 74 | 2c 20 74 68 65 6e 20 51 |. is set|, then Q|
|00003b70| 75 69 63 6b 44 72 61 77 | 20 6b 6e 6f 77 73 00 00 |uickDraw| knows..|
|00003b80| 06 00 02 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00003b90| 64 05 26 02 3e 00 5a 02 | 4a 00 df 00 28 02 47 00 |d.&.>.Z.|J...(.G.|
|00003ba0| 5a 1b 74 68 65 20 73 74 | 72 75 63 74 75 72 65 20 |Z.the st|ructure |
|00003bb0| 69 73 20 61 20 70 69 78 | 4d 61 70 2e 20 00 06 00 |is a pix|Map. ...|
|00003bc0| 03 00 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 05 |......d.|.ONLN.d.|
|00003bd0| 41 02 3e 00 df 02 4a 01 | 94 00 29 85 22 54 68 65 |A.>...J.|..)."The|
|00003be0| 20 73 65 63 6f 6e 64 20 | 68 69 67 68 65 73 74 20 | second |highest |
|00003bf0| 62 69 74 20 69 73 20 75 | 73 65 64 20 62 79 20 00 |bit is u|sed by .|
|00003c00| 03 00 16 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 05 |......d.|.ONLN.d.|
|00003c10| 63 02 3d 01 94 02 49 02 | 1c 00 29 b5 13 43 6f 70 |c.=...I.|..)..Cop|
|00003c20| 79 42 69 74 73 2c 20 43 | 6f 70 79 4d 61 73 6b 2c |yBits, C|opyMask,|
|00003c30| 00 00 06 00 00 00 00 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|00003c40| 4e 00 64 05 77 02 4a 00 | 5a 02 56 01 09 00 28 02 |N.d.w.J.|Z.V...(.|
|00003c50| 54 00 5a 19 43 6f 70 79 | 44 65 65 70 4d 61 73 6b |T.Z.Copy|DeepMask|
|00003c60| 2c 20 53 65 65 64 43 46 | 69 6c 6c 2c 20 00 06 00 |, SeedCF|ill, ...|
|00003c70| 01 00 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 05 |......d.|.ONLN.d.|
|00003c80| 90 02 4a 01 09 02 56 01 | 65 00 29 af 0d 61 6e 64 |..J...V.|e.)..and|
|00003c90| 20 43 61 6c 63 43 4d 61 | 73 6b 00 00 03 00 14 00 | CalcCMa|sk......|
|00003ca0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 05 9d 02 4b 01 |..d..ONL|N.d...K.|
|00003cb0| 65 02 57 01 f2 00 29 5c | 1e 20 74 6f 20 64 69 73 |e.W...)\|. to dis|
|00003cc0| 74 69 6e 67 75 69 73 68 | 20 62 65 74 77 65 65 6e |tinguish| between|
|00003cd0| 20 74 68 65 69 72 20 00 | 03 00 16 00 a1 00 64 00 | their .|......d.|
|00003ce0| 10 4f 4e 4c 4e 00 64 05 | bb 02 4a 01 f2 02 56 02 |.ONLN.d.|..J...V.|
|00003cf0| 1c 00 29 8d 06 62 69 74 | 4d 61 70 00 03 00 14 00 |..)..bit|Map.....|
|00003d00| 06 00 00 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00003d10| 64 05 c2 02 57 00 5a 02 | 63 01 e8 00 28 02 60 00 |d...W.Z.|c...(.`.|
|00003d20| 5a 55 70 61 72 61 6d 65 | 74 65 72 73 2e 20 54 68 |ZUparame|ters. Th|
|00003d30| 65 20 69 6d 70 6c 69 63 | 61 74 69 6f 6e 73 20 6f |e implic|ations o|
|00003d40| 66 20 74 68 69 73 20 69 | 64 65 6e 74 69 66 69 63 |f this i|dentific|
|00003d50| 61 74 69 6f 6e 20 73 63 | 68 65 6d 65 20 61 72 65 |ation sc|heme are|
|00003d60| 20 66 75 6c 6c 79 20 64 | 69 73 63 75 73 73 65 64 | fully d|iscussed|
|00003d70| 20 62 65 6c 6f 77 2e 00 | 04 01 00 00 0d 00 0e 00 | below..|........|
|00003d80| a1 00 64 00 10 4f 4e 4c | 4e 00 64 06 18 02 7b 00 |..d..ONL|N.d...{.|
|00003d90| 5a 02 8a 01 25 00 2a 27 | 1c 33 20 54 79 70 65 73 |Z...%.*'|.3 Types|
|00003da0| 20 6f 66 20 42 69 74 4d | 61 70 20 50 61 72 61 6d | of BitM|ap Param|
|00003db0| 65 74 65 72 73 00 03 00 | 16 00 04 00 00 00 0d 00 |eters...|........|
|00003dc0| 0c 00 06 00 06 00 00 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|00003dd0| 4e 00 64 06 35 02 96 00 | 5a 02 a2 01 99 00 2a 19 |N.d.5...|Z.....*.|
|00003de0| 2b 43 6f 70 79 42 69 74 | 73 2c 20 43 6f 70 79 4d |+CopyBit|s, CopyM|
|00003df0| 61 73 6b 2c 20 43 6f 70 | 79 44 65 65 70 4d 61 73 |ask, Cop|yDeepMas|
|00003e00| 6b 2c 20 53 65 65 64 43 | 46 69 6c 6c 00 00 0d 00 |k, SeedC|Fill....|
|00003e10| 0a 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 06 60 02 |....d..O|NLN.d.`.|
|00003e20| 97 01 99 02 a3 01 9f 00 | 28 02 a0 01 99 01 2c 00 |........|(.....,.|
|00003e30| 03 00 14 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 06 |......d.|.ONLN.d.|
|00003e40| 61 02 97 01 9f 02 a3 01 | a8 00 29 06 01 20 00 00 |a.......|..).. ..|
|00003e50| 0d 00 0c 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 06 |......d.|.ONLN.d.|
|00003e60| 62 02 97 01 a8 02 a3 01 | b9 00 29 09 03 61 6e 64 |b.......|..)..and|
|00003e70| 00 00 03 00 16 00 0d 00 | 0a 00 a1 00 64 00 10 4f |........|....d..O|
|00003e80| 4e 4c 4e 00 64 06 65 02 | 97 01 b9 02 a3 01 c5 00 |NLN.d.e.|........|
|00003e90| 29 11 01 20 00 00 0d 00 | 0c 00 06 00 07 00 00 00 |).. ....|........|
|00003ea0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 06 66 02 96 01 |..d..ONL|N.d.f...|
|00003eb0| c5 02 a2 02 04 00 29 0c | 09 43 61 6c 63 43 4d 61 |......).|.CalcCMa|
|00003ec0| 73 6b 00 00 03 00 14 00 | a1 00 64 00 10 4f 4e 4c |sk......|..d..ONL|
|00003ed0| 4e 00 64 06 6f 02 97 02 | 04 02 a3 02 1c 00 29 3f |N.d.o...|......)?|
|00003ee0| 04 20 61 72 65 00 06 00 | 02 00 00 00 a1 00 64 00 |. are...|......d.|
|00003ef0| 10 4f 4e 4c 4e 00 64 06 | 74 02 a3 00 5a 02 af 01 |.ONLN.d.|t...Z...|
|00003f00| 2b 00 28 02 ac 00 5a 2b | 72 6f 75 74 69 6e 65 73 |+.(...Z+|routines|
|00003f10| 20 77 68 69 63 68 20 74 | 61 6b 65 20 62 69 74 4d | which t|ake bitM|
|00003f20| 61 70 73 20 61 73 20 74 | 68 65 69 72 20 66 69 72 |aps as t|heir fir|
|00003f30| 73 74 20 00 06 00 03 00 | 00 00 a1 00 64 00 10 4f |st .....|....d..O|
|00003f40| 4e 4c 4e 00 64 06 9f 02 | a3 01 2b 02 af 02 1c 00 |NLN.d...|..+.....|
|00003f50| 29 d1 30 74 77 6f 20 70 | 61 72 61 6d 65 74 65 72 |).0two p|arameter|
|00003f60| 73 2e 20 46 6f 72 20 68 | 69 73 74 6f 72 69 63 61 |s. For h|istorica|
|00003f70| 6c 20 61 6e 64 20 63 6f | 6d 70 61 74 69 62 69 6c |l and co|mpatibil|
|00003f80| 69 74 79 00 ff 00 a1 00 | c0 01 f4 25 25 44 53 49 |ity.....|...%%DSI|
|00003f90| 44 49 43 54 3a 5f 63 76 | 0d 63 75 72 72 65 6e 74 |DICT:_cv|.current|
|00003fa0| 64 69 63 74 20 2f 62 75 | 20 6b 6e 6f 77 6e 20 7b |dict /bu| known {|
|00003fb0| 62 75 7d 69 66 0d 75 73 | 65 72 64 69 63 74 20 2f |bu}if.us|erdict /|
|00003fc0| 5f 63 76 20 6b 6e 6f 77 | 6e 20 6e 6f 74 7b 75 73 |_cv know|n not{us|
|00003fd0| 65 72 64 69 63 74 20 2f | 5f 63 76 20 33 30 20 64 |erdict /|_cv 30 d|
|00003fe0| 69 63 74 20 70 75 74 7d | 69 66 0d 5f 63 76 20 62 |ict put}|if._cv b|
|00003ff0| 65 67 69 6e 0d 2f 62 64 | 66 7b 62 69 6e 64 20 64 |egin./bd|f{bind d|
|00004000| 65 66 7d 62 69 6e 64 20 | 64 65 66 0d 63 75 72 72 |ef}bind |def.curr|
|00004010| 65 6e 74 73 63 72 65 65 | 6e 2f 63 73 20 65 78 63 |entscree|n/cs exc|
|00004020| 68 20 64 65 66 2f 63 61 | 20 65 78 63 68 20 64 65 |h def/ca| exch de|
|00004030| 66 2f 63 66 20 65 78 63 | 68 20 64 65 66 0d 2f 73 |f/cf exc|h def./s|
|00004040| 65 74 63 6d 79 6b 63 6f | 6c 6f 72 20 77 68 65 72 |etcmykco|lor wher|
|00004050| 65 7b 2f 73 65 74 63 6d | 79 6b 63 6f 6c 6f 72 20 |e{/setcm|ykcolor |
|00004060| 67 65 74 20 2f 63 76 63 | 6d 79 6b 20 65 78 63 68 |get /cvc|myk exch|
|00004070| 20 64 65 66 7d 7b 2f 63 | 76 63 6d 79 6b 7b 31 20 | def}{/c|vcmyk{1 |
|00004080| 73 75 62 20 34 20 31 20 | 72 6f 6c 6c 20 33 7b 33 |sub 4 1 |roll 3{3|
|00004090| 20 69 6e 64 65 78 20 61 | 64 64 20 6e 65 67 20 64 | index a|dd neg d|
|000040a0| 75 70 20 30 20 6c 74 7b | 70 6f 70 20 30 7d 69 66 |up 0 lt{|pop 0}if|
|000040b0| 20 33 20 31 20 72 6f 6c | 6c 7d 72 65 70 65 61 74 | 3 1 rol|l}repeat|
|000040c0| 20 73 65 74 72 67 62 63 | 6f 6c 6f 72 20 70 6f 70 | setrgbc|olor pop|
|000040d0| 7d 62 64 66 20 7d 69 66 | 65 6c 73 65 0d 2f 73 73 |}bdf }if|else./ss|
|000040e0| 7b 2f 2f 63 66 20 2f 2f | 63 61 20 2f 2f 63 73 20 |{//cf //|ca //cs |
|000040f0| 73 65 74 73 63 72 65 65 | 6e 7d 62 64 66 0d 2f 73 |setscree|n}bdf./s|
|00004100| 74 67 7b 73 73 20 73 65 | 74 67 72 61 79 7d 62 64 |tg{ss se|tgray}bd|
|00004110| 66 0d 2f 73 74 72 67 62 | 7b 73 73 20 73 65 74 72 |f./strgb|{ss setr|
|00004120| 67 62 63 6f 6c 6f 72 7d | 62 64 66 0d 2f 73 74 63 |gbcolor}|bdf./stc|
|00004130| 6d 79 6b 7b 73 73 20 63 | 76 63 6d 79 6b 7d 62 64 |myk{ss c|vcmyk}bd|
|00004140| 66 0d 2f 6d 69 6e 31 7b | 64 75 70 20 30 20 65 71 |f./min1{|dup 0 eq|
|00004150| 7b 70 6f 70 20 31 7d 69 | 66 7d 62 64 66 0d 65 6e |{pop 1}i|f}bdf.en|
|00004160| 64 0d 63 75 72 72 65 6e | 74 64 69 63 74 20 2f 62 |d.curren|tdict /b|
|00004170| 6e 20 6b 6e 6f 77 6e 20 | 7b 62 6e 7d 69 66 0d 00 |n known |{bn}if..|
|00004180| a0 00 bf 16 24 00 00 00 | 00 03 48 02 52 00 11 02 |....$...|..H.R...|
|00004190| ff 0c 00 ff ff ff ff 00 | 00 00 00 00 00 00 00 02 |........|........|
|000041a0| 52 00 00 03 48 00 00 00 | 00 00 00 00 1e 00 01 00 |R...H...|........|
|000041b0| 0a 00 00 00 00 03 49 02 | 52 00 2c 00 08 00 14 05 |......I.|R.,.....|
|000041c0| 54 69 6d 65 73 00 03 00 | 14 00 0d 00 0a 00 2e 00 |Times...|........|
|000041d0| 04 00 00 00 00 00 2b 36 | 2d 19 4d 61 63 69 6e 74 |......+6|-.Macint|
|000041e0| 6f 73 68 20 54 65 63 68 | 6e 69 63 61 6c 20 4e 6f |osh Tech|nical No|
|000041f0| 74 65 73 00 20 00 2f 00 | 34 00 2f 01 f9 00 20 02 |tes. ./.|4./... .|
|00004200| b1 00 34 02 b1 01 f9 00 | 28 02 c6 00 36 01 32 00 |..4.....|(...6.2.|
|00004210| 29 05 05 20 6f 66 20 35 | 00 00 28 02 c6 01 7c 1c |).. of 5|..(...|.|
|00004220| 51 44 20 31 35 20 2d 20 | 52 6f 77 42 79 74 65 73 |QD 15 - |RowBytes|
|00004230| 20 52 65 76 65 61 6c 65 | 64 20 49 49 00 00 2b 4f | Reveale|d II..+O|
|00004240| 16 09 51 75 69 63 6b 44 | 72 61 77 00 0d 00 0c 00 |..QuickD|raw.....|
|00004250| 06 00 04 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00004260| 64 00 00 00 3d 00 36 00 | 49 00 a3 00 28 00 46 00 |d...=.6.|I...(.F.|
|00004270| 36 15 72 65 61 73 6f 6e | 73 2c 20 74 68 72 65 65 |6.reason|s, three|
|00004280| 20 74 79 70 65 73 20 00 | 06 00 05 00 00 00 a1 00 | types .|........|
|00004290| 64 00 10 4f 4e 4c 4e 00 | 64 00 15 00 3d 00 a3 00 |d..ONLN.|d...=...|
|000042a0| 49 01 57 00 29 6d 20 6f | 66 20 70 61 72 61 6d 65 |I.W.)m o|f parame|
|000042b0| 74 65 72 73 20 63 61 6e | 20 62 65 20 70 61 73 73 |ters can| be pass|
|000042c0| 65 64 20 69 6e 3a 20 00 | 2c 00 0a 00 16 07 43 6f |ed in: .|,.....Co|
|000042d0| 75 72 69 65 72 00 03 00 | 16 00 a1 00 64 00 10 4f |urier...|....d..O|
|000042e0| 4e 4c 4e 00 64 00 35 00 | 3c 01 57 00 48 01 d1 00 |NLN.d.5.|<.W.H...|
|000042f0| 29 b4 10 62 69 74 4d 61 | 70 2c 20 70 69 78 4d 61 |)..bitMa|p, pixMa|
|00004300| 70 73 20 00 03 00 14 00 | a1 00 64 00 10 4f 4e 4c |ps .....|..d..ONL|
|00004310| 4e 00 64 00 45 00 3d 01 | d1 00 49 01 f8 00 29 7a |N.d.E.=.|..I...)z|
|00004320| 07 61 6e 64 20 74 68 65 | 00 00 03 00 16 00 06 00 |.and the|........|
|00004330| 00 00 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 00 |......d.|.ONLN.d.|
|00004340| 4d 00 49 00 36 00 55 00 | 6e 00 28 00 53 00 36 08 |M.I.6.U.|n.(.S.6.|
|00004350| 70 6f 72 74 42 69 74 73 | 00 00 03 00 14 00 a1 00 |portBits|........|
|00004360| 64 00 10 4f 4e 4c 4e 00 | 64 00 55 00 4a 00 6e 00 |d..ONLN.|d.U.J.n.|
|00004370| 56 00 9e 00 29 38 0c 20 | 66 69 65 6c 64 20 6f 66 |V...)8. |field of|
|00004380| 20 61 20 00 03 00 16 00 | a1 00 64 00 10 4f 4e 4c | a .....|..d..ONL|
|00004390| 4e 00 64 00 61 00 49 00 | 9e 00 55 00 e4 00 29 30 |N.d.a.I.|..U...)0|
|000043a0| 0a 63 47 72 61 66 50 6f | 72 74 2e 00 03 00 14 00 |.cGrafPo|rt......|
|000043b0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 00 6c 00 63 00 |..d..ONL|N.d.l.c.|
|000043c0| 36 00 6f 00 aa 00 28 00 | 6c 00 36 19 46 6f 72 20 |6.o...(.|l.6.For |
|000043d0| 74 68 65 20 70 75 72 70 | 6f 73 65 73 20 6f 66 20 |the purp|oses of |
|000043e0| 74 68 69 73 20 00 06 00 | 01 00 00 00 a1 00 64 00 |this ...|......d.|
|000043f0| 10 4f 4e 4c 4e 00 64 00 | 85 00 63 00 aa 00 6f 01 |.ONLN.d.|..c...o.|
|00004400| 24 00 29 74 1a 6e 6f 74 | 65 2c 20 49 20 77 69 6c |$.)t.not|e, I wil|
|00004410| 6c 20 66 6f 63 75 73 20 | 6f 6e 20 74 68 65 20 00 |l focus |on the .|
|00004420| 03 00 16 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 00 |......d.|.ONLN.d.|
|00004430| 9f 00 62 01 24 00 6e 01 | 5c 00 29 7a 08 43 6f 70 |..b.$.n.|\.)z.Cop|
|00004440| 79 42 69 74 73 00 03 00 | 14 00 a1 00 64 00 10 4f |yBits...|....d..O|
|00004450| 4e 4c 4e 00 64 00 a7 00 | 63 01 5c 00 6f 01 f8 00 |NLN.d...|c.\.o...|
|00004460| 29 38 20 20 63 61 6c 6c | 2c 20 74 68 6f 75 67 68 |)8 call|, though|
|00004470| 20 6d 79 20 64 69 73 63 | 75 73 73 69 6f 6e 20 77 | my disc|ussion w|
|00004480| 69 6c 6c 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 00 |ill...d.|.ONLN.d.|
|00004490| c8 00 70 00 36 00 7c 01 | a8 00 28 00 79 00 36 50 |..p.6.|.|..(.y.6P|
|000044a0| 61 70 70 6c 79 20 74 6f | 20 74 68 65 20 6f 74 68 |apply to| the oth|
|000044b0| 65 72 20 66 6f 75 72 20 | 72 6f 75 74 69 6e 65 73 |er four |routines|
|000044c0| 2e 20 54 68 65 20 62 65 | 68 61 76 69 6f 72 20 6f |. The be|havior o|
|000044d0| 66 20 74 68 65 73 65 20 | 66 69 76 65 20 63 61 6c |f these |five cal|
|000044e0| 6c 73 20 69 73 20 69 64 | 65 6e 74 69 63 61 6c 20 |ls is id|entical |
|000044f0| 00 00 06 00 02 00 00 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|00004500| 4e 00 64 01 18 00 70 01 | a8 00 7c 01 ce 00 28 00 |N.d...p.|..|...(.|
|00004510| 79 01 a8 08 66 6f 72 20 | 74 68 65 20 00 00 03 00 |y...for |the ....|
|00004520| 16 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 01 20 00 |....d..O|NLN.d. .|
|00004530| 6f 01 ce 00 7b 01 f8 00 | 29 26 06 62 69 74 4d 61 |o...{...|)&.bitMa|
|00004540| 70 00 03 00 14 00 06 00 | 00 00 00 00 a1 00 64 00 |p.......|......d.|
|00004550| 10 4f 4e 4c 4e 00 64 01 | 27 00 7c 00 36 00 88 00 |.ONLN.d.|'.|.6...|
|00004560| 6d 00 28 00 85 00 36 0b | 70 61 72 61 6d 65 74 65 |m.(...6.|paramete|
|00004570| 72 73 2e 00 04 01 00 00 | a1 00 64 00 10 4f 4e 4c |rs......|..d..ONL|
|00004580| 4e 00 64 01 34 00 a0 00 | 36 00 ac 00 78 00 2a 24 |N.d.4...|6...x.*$|
|00004590| 0a 54 68 65 20 42 69 74 | 4d 61 70 00 04 00 00 00 |.The Bit|Map.....|
|000045a0| 06 00 01 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|000045b0| 64 01 3f 00 b9 00 36 00 | c5 00 4c 00 2a 19 04 54 |d.?...6.|..L.*..T|
|000045c0| 68 65 20 00 03 00 16 00 | a1 00 64 00 10 4f 4e 4c |he .....|..d..ONL|
|000045d0| 4e 00 64 01 43 00 b8 00 | 4c 00 c4 00 76 00 29 16 |N.d.C...|L...v.).|
|000045e0| 06 62 69 74 4d 61 70 00 | 0d 00 09 00 a1 00 64 00 |.bitMap.|......d.|
|000045f0| 10 4f 4e 4c 4e 00 64 01 | 49 00 ba 00 76 00 c5 00 |.ONLN.d.|I...v...|
|00004600| 7c 00 29 2a 01 20 00 00 | 03 00 14 00 0d 00 0c 00 ||.)*. ..|........|
|00004610| a1 00 64 00 10 4f 4e 4c | 4e 00 64 01 4a 00 b9 00 |..d..ONL|N.d.J...|
|00004620| 7c 00 c5 01 26 00 29 06 | 25 70 61 72 61 6d 65 74 ||...&.).|%paramet|
|00004630| 65 72 20 69 73 20 61 63 | 74 75 61 6c 6c 79 20 61 |er is ac|tually a|
|00004640| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 61 20 00 00 | pointer| to a ..|
|00004650| 03 00 16 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 01 |......d.|.ONLN.d.|
|00004660| 6f 00 b8 01 26 00 c4 01 | 50 00 29 aa 06 62 69 74 |o...&...|P.)..bit|
|00004670| 4d 61 70 00 03 00 14 00 | a1 00 64 00 10 4f 4e 4c |Map.....|..d..ONL|
|00004680| 4e 00 64 01 75 00 b9 01 | 50 00 c5 01 9e 00 29 2a |N.d.u...|P.....)*|
|00004690| 11 2e 20 49 6e 20 50 61 | 73 63 61 6c 2c 20 74 68 |.. In Pa|scal, th|
|000046a0| 65 20 00 00 06 00 02 00 | 00 00 a1 00 64 00 10 4f |e ......|....d..O|
|000046b0| 4e 4c 4e 00 64 01 86 00 | b9 01 9e 00 c5 01 f8 00 |NLN.d...|........|
|000046c0| 29 4e 14 70 6f 69 6e 74 | 65 72 20 69 73 20 69 6d |)N.point|er is im|
|000046d0| 70 6c 69 63 69 74 2c 00 | 06 00 01 00 00 00 a1 00 |plicit,.|........|
|000046e0| 64 00 10 4f 4e 4c 4e 00 | 64 01 9b 00 c6 00 36 00 |d..ONLN.|d.....6.|
|000046f0| d2 00 52 00 28 00 cf 00 | 36 06 73 69 6e 63 65 20 |..R.(...|6.since |
|00004700| 00 00 06 00 02 00 00 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|00004710| 4e 00 64 01 a1 00 c6 00 | 52 00 d2 00 5c 00 29 1c |N.d.....|R...\.).|
|00004720| 02 61 20 00 03 00 16 00 | a1 00 64 00 10 4f 4e 4c |.a .....|..d..ONL|
|00004730| 4e 00 64 01 a3 00 c5 00 | 5c 00 d1 00 86 00 29 0a |N.d.....|\.....).|
|00004740| 06 62 69 74 4d 61 70 00 | 0d 00 09 00 a1 00 64 00 |.bitMap.|......d.|
|00004750| 10 4f 4e 4c 4e 00 64 01 | a9 00 c7 00 86 00 d2 00 |.ONLN.d.|........|
|00004760| 8d 00 29 2a 01 20 00 00 | 03 00 14 00 0d 00 0c 00 |..)*. ..|........|
|00004770| a1 00 64 00 10 4f 4e 4c | 4e 00 64 01 aa 00 c6 00 |..d..ONL|N.d.....|
|00004780| 8d 00 d2 01 f8 00 29 07 | 4b 73 74 72 75 63 74 75 |......).|Kstructu|
|00004790| 72 65 20 69 73 20 67 72 | 65 61 74 65 72 20 74 68 |re is gr|eater th|
|000047a0| 61 6e 20 34 20 62 79 74 | 65 73 20 69 6e 20 73 69 |an 4 byt|es in si|
|000047b0| 7a 65 20 61 6e 64 20 74 | 68 65 20 50 61 73 63 61 |ze and t|he Pasca|
|000047c0| 6c 20 63 6f 6d 70 69 6c | 65 72 20 63 72 65 61 74 |l compil|er creat|
|000047d0| 65 73 20 61 00 00 06 00 | 00 00 00 00 a1 00 64 00 |es a....|......d.|
|000047e0| 10 4f 4e 4c 4e 00 64 01 | f6 00 d2 00 36 00 de 01 |.ONLN.d.|....6...|
|000047f0| 21 00 28 00 db 00 36 34 | 70 6f 69 6e 74 65 72 20 |!.(...64|pointer |
|00004800| 66 6f 72 20 61 6e 79 20 | 64 61 74 61 20 73 74 72 |for any |data str|
|00004810| 75 63 74 75 72 65 20 67 | 72 65 61 74 65 72 20 74 |ucture g|reater t|
|00004820| 68 61 6e 20 34 20 62 79 | 74 65 73 2e 00 00 03 00 |han 4 by|tes.....|
|00004830| 16 00 0d 00 09 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00004840| 64 02 2b 00 ea 00 36 00 | f5 00 4f 00 2a 17 05 49 |d.+...6.|..O.*..I|
|00004850| 6e 20 43 3a 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |n C:....|d..ONLN.|
|00004860| 64 02 31 00 f4 00 36 00 | ff 01 ad 00 2a 0a 4b 70 |d.1...6.|....*.Kp|
|00004870| 61 73 63 61 6c 20 76 6f | 69 64 20 43 6f 70 79 42 |ascal vo|id CopyB|
|00004880| 69 74 73 28 63 6f 6e 73 | 74 20 42 69 74 4d 61 70 |its(cons|t BitMap|
|00004890| 20 2a 73 72 63 42 69 74 | 73 2c 63 6f 6e 73 74 20 | *srcBit|s,const |
|000048a0| 42 69 74 4d 61 70 20 2a | 64 73 74 42 69 74 73 2c |BitMap *|dstBits,|
|000048b0| 63 6f 6e 73 74 20 52 65 | 63 74 00 00 a1 00 64 00 |const Re|ct....d.|
|000048c0| 10 4f 4e 4c 4e 00 64 02 | 7e 00 fe 00 5a 01 09 01 |.ONLN.d.|~...Z...|
|000048d0| b3 00 2b 24 0a 45 2a 73 | 72 63 52 65 63 74 2c 20 |..+$.E*s|rcRect, |
|000048e0| 63 6f 6e 73 74 20 52 65 | 63 74 20 2a 64 73 74 52 |const Re|ct *dstR|
|000048f0| 65 63 74 2c 73 68 6f 72 | 74 20 6d 6f 64 65 2c 52 |ect,shor|t mode,R|
|00004900| 67 6e 48 61 6e 64 6c 65 | 20 6d 61 73 6b 52 67 6e |gnHandle| maskRgn|
|00004910| 29 20 3d 20 30 78 41 38 | 45 43 3b 00 a1 00 64 00 |) = 0xA8|EC;...d.|
|00004920| 10 4f 4e 4c 4e 00 64 02 | c5 01 12 00 36 01 1d 00 |.ONLN.d.|....6...|
|00004930| 68 00 28 01 1a 00 36 0a | 49 6e 20 50 61 73 63 61 |h.(...6.|In Pasca|
|00004940| 6c 3a 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 02 |l:....d.|.ONLN.d.|
|00004950| d0 01 1c 00 36 01 27 01 | c1 00 2a 0a 4f 50 52 4f |....6.'.|..*.OPRO|
|00004960| 43 45 44 55 52 45 20 43 | 6f 70 79 42 69 74 73 28 |CEDURE C|opyBits(|
|00004970| 73 72 63 42 69 74 73 3a | 20 42 69 74 4d 61 70 3b |srcBits:| BitMap;|
|00004980| 64 73 74 42 69 74 73 3a | 20 42 69 74 4d 61 70 3b |dstBits:| BitMap;|
|00004990| 73 72 63 52 65 63 74 3a | 20 52 65 63 74 3b 64 73 |srcRect:| Rect;ds|
|000049a0| 74 52 65 63 74 3a 20 52 | 65 63 74 3b 00 00 a1 00 |tRect: R|ect;....|
|000049b0| 64 00 10 4f 4e 4c 4e 00 | 64 03 21 01 26 00 5a 01 |d..ONLN.|d.!.&.Z.|
|000049c0| 31 01 04 00 2b 24 0a 22 | 6d 6f 64 65 3a 20 49 4e |1...+$."|mode: IN|
|000049d0| 54 45 47 45 52 3b 6d 61 | 73 6b 52 67 6e 3a 20 52 |TEGER;ma|skRgn: R|
|000049e0| 67 6e 48 61 6e 64 6c 65 | 29 3b 00 00 a1 00 64 00 |gnHandle|);....d.|
|000049f0| 10 4f 4e 4c 4e 00 64 03 | 45 01 30 00 5a 01 3b 00 |.ONLN.d.|E.0.Z.;.|
|00004a00| 9b 00 2a 0a 0d 49 4e 4c | 49 4e 45 20 24 41 38 45 |..*..INL|INE $A8E|
|00004a10| 43 3b 00 00 03 00 14 00 | 04 01 00 00 0d 00 0c 00 |C;......|........|
|00004a20| a1 00 64 00 10 4f 4e 4c | 4e 00 64 03 53 01 46 00 |..d..ONL|N.d.S.F.|
|00004a30| 36 01 52 00 7a 00 28 01 | 4f 00 36 0a 54 68 65 20 |6.R.z.(.|O.6.The |
|00004a40| 50 69 78 4d 61 70 00 00 | 04 00 00 00 a1 00 64 00 |PixMap..|......d.|
|00004a50| 10 4f 4e 4c 4e 00 64 03 | 5e 01 5f 00 36 01 6b 00 |.ONLN.d.|^._.6.k.|
|00004a60| ab 00 2a 19 16 57 69 74 | 68 20 43 6f 6c 6f 72 20 |..*..Wit|h Color |
|00004a70| 51 75 69 63 6b 44 72 61 | 77 2c 20 00 03 00 16 00 |QuickDra|w, .....|
|00004a80| a1 00 64 00 10 4f 4e 4c | 4e 00 64 03 74 01 5e 00 |..d..ONL|N.d.t.^.|
|00004a90| ab 01 6a 00 e3 00 29 75 | 08 43 6f 70 79 42 69 74 |..j...)u|.CopyBit|
|00004aa0| 73 00 03 00 14 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |s.......|d..ONLN.|
|00004ab0| 64 03 7c 01 5f 00 e3 01 | 6b 01 0b 00 29 38 09 20 |d.|._...|k...)8. |
|00004ac0| 61 63 63 65 70 74 73 20 | 00 00 03 00 16 00 06 00 |accepts |........|
|00004ad0| 01 00 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 03 |......d.|.ONLN.d.|
|00004ae0| 85 01 5e 01 0b 01 6a 01 | 3c 00 29 28 07 70 69 78 |..^...j.|<.)(.pix|
|00004af0| 4d 61 70 73 00 00 03 00 | 14 00 a1 00 64 00 10 4f |Maps....|....d..O|
|00004b00| 4e 4c 4e 00 64 03 8c 01 | 5f 01 3c 01 6b 01 4e 00 |NLN.d...|_.<.k.N.|
|00004b10| 29 31 04 20 61 73 20 00 | 03 00 16 00 a1 00 64 00 |)1. as .|......d.|
|00004b20| 10 4f 4e 4c 4e 00 64 03 | 90 01 5e 01 4e 01 6a 01 |.ONLN.d.|..^.N.j.|
|00004b30| 78 00 29 12 06 42 69 74 | 4d 61 70 00 03 00 14 00 |x.)..Bit|Map.....|
|00004b40| a1 00 64 00 10 4f 4e 4c | 4e 00 64 03 96 01 5f 01 |..d..ONL|N.d..._.|
|00004b50| 78 01 6b 01 f8 00 29 2a | 1a 20 70 61 72 61 6d 65 |x.k...)*|. parame|
|00004b60| 74 65 72 73 2e 20 54 68 | 69 73 20 73 75 70 70 6f |ters. Th|is suppo|
|00004b70| 72 74 2c 00 06 00 00 00 | 00 00 a1 00 64 00 10 4f |rt,.....|....d..O|
|00004b80| 4e 4c 4e 00 64 03 b1 01 | 6c 00 36 01 78 00 f6 00 |NLN.d...|l.6.x...|
|00004b90| 28 01 75 00 36 27 68 6f | 77 65 76 65 72 2c 20 64 |(.u.6'ho|wever, d|
|00004ba0| 6f 65 73 20 6e 6f 74 20 | 63 6f 6d 65 20 77 69 74 |oes not |come wit|
|00004bb0| 68 6f 75 74 20 61 20 63 | 6f 73 74 2e 20 00 03 00 |hout a c|ost. ...|
|00004bc0| 16 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 03 d8 01 |....d..O|NLN.d...|
|00004bd0| 6b 00 f6 01 77 01 2e 00 | 29 c0 08 43 6f 70 79 42 |k...w...|)..CopyB|
|00004be0| 69 74 73 00 03 00 14 00 | a1 00 64 00 10 4f 4e 4c |its.....|..d..ONL|
|00004bf0| 4e 00 64 03 e0 01 6c 01 | 2e 01 78 01 ea 00 29 38 |N.d...l.|..x...)8|
|00004c00| 27 20 6e 65 65 64 73 20 | 61 20 6d 65 74 68 6f 64 |' needs |a method|
|00004c10| 20 74 6f 20 64 69 73 74 | 69 6e 67 75 69 73 68 20 | to dist|inguish |
|00004c20| 62 65 74 77 65 65 6e 20 | 00 00 06 00 01 00 00 00 |between |........|
|00004c30| a1 00 64 00 10 4f 4e 4c | 4e 00 64 04 07 01 6c 01 |..d..ONL|N.d...l.|
|00004c40| ea 01 78 01 f8 00 29 bc | 03 74 68 65 00 00 06 00 |..x...).|.the....|
|00004c50| 03 00 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 04 |......d.|.ONLN.d.|
|00004c60| 0b 01 79 00 36 01 85 00 | 8b 00 28 01 82 00 36 10 |..y.6...|..(...6.|
|00004c70| 74 77 6f 20 70 61 72 61 | 6d 65 74 65 72 73 2e 20 |two para|meters. |
|00004c80| 00 00 06 00 04 00 00 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|00004c90| 4e 00 64 04 1b 01 79 00 | 8b 01 85 01 4d 00 29 55 |N.d...y.|....M.)U|
|00004ca0| 23 41 73 20 6d 65 6e 74 | 69 6f 6e 65 64 20 61 62 |#As ment|ioned ab|
|00004cb0| 6f 76 65 2c 20 74 68 65 | 20 74 6f 70 20 62 69 74 |ove, the| top bit|
|00004cc0| 20 6f 66 20 00 00 03 00 | 16 00 a1 00 64 00 10 4f | of ....|....d..O|
|00004cd0| 4e 4c 4e 00 64 04 3e 01 | 78 01 4d 01 84 01 85 00 |NLN.d.>.|x.M.....|
|00004ce0| 29 c2 08 72 6f 77 42 79 | 74 65 73 00 03 00 14 00 |)..rowBy|tes.....|
|00004cf0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 04 46 01 79 01 |..d..ONL|N.d.F.y.|
|00004d00| 85 01 85 01 f8 00 29 38 | 16 20 64 69 73 74 69 6e |......)8|. distin|
|00004d10| 67 75 69 73 68 65 73 20 | 62 65 74 77 65 65 6e 00 |guishes |between.|
|00004d20| 03 00 16 00 06 00 00 00 | 00 00 a1 00 64 00 10 4f |........|....d..O|
|00004d30| 4e 4c 4e 00 64 04 5d 01 | 85 00 36 01 91 00 67 00 |NLN.d.].|..6...g.|
|00004d40| 28 01 8f 00 36 07 70 69 | 78 4d 61 70 73 00 03 00 |(...6.pi|xMaps...|
|00004d50| 14 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 04 64 01 |....d..O|NLN.d.d.|
|00004d60| 86 00 67 01 92 00 7e 00 | 29 31 05 20 61 6e 64 20 |..g...~.|)1. and |
|00004d70| 00 00 03 00 16 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00004d80| 64 04 69 01 85 00 7e 01 | 91 00 af 00 29 17 07 62 |d.i...~.|....)..b|
|00004d90| 69 74 4d 61 70 73 00 00 | 03 00 14 00 a1 00 64 00 |itMaps..|......d.|
|00004da0| 10 4f 4e 4c 4e 00 64 04 | 70 01 86 00 af 01 92 01 |.ONLN.d.|p.......|
|00004db0| 1a 00 29 31 18 2e 20 57 | 68 69 6c 65 20 74 68 69 |..)1.. W|hile thi|
|00004dc0| 73 20 62 69 74 20 61 6c | 6c 6f 77 73 20 00 03 00 |s bit al|lows ...|
|00004dd0| 16 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 04 88 01 |....d..O|NLN.d...|
|00004de0| 85 01 1a 01 91 01 4b 00 | 29 6b 07 70 69 78 4d 61 |......K.|)k.pixMa|
|00004df0| 70 73 00 00 03 00 14 00 | a1 00 64 00 10 4f 4e 4c |ps......|..d..ONL|
|00004e00| 4e 00 64 04 8f 01 86 01 | 4b 01 92 01 5a 00 29 31 |N.d.....|K...Z.)1|
|00004e10| 04 20 74 6f 20 00 06 00 | 01 00 00 00 a1 00 64 00 |. to ...|......d.|
|00004e20| 10 4f 4e 4c 4e 00 64 04 | 93 01 86 01 5a 01 92 01 |.ONLN.d.|....Z...|
|00004e30| a7 00 29 0f 10 62 65 20 | 70 61 73 73 65 64 20 69 |..)..be |passed i|
|00004e40| 6e 20 74 6f 20 00 03 00 | 16 00 a1 00 64 00 10 4f |n to ...|....d..O|
|00004e50| 4e 4c 4e 00 64 04 a3 01 | 85 01 a7 01 91 01 e6 00 |NLN.d...|........|
|00004e60| 29 4d 09 43 6f 70 79 42 | 69 74 73 2c 00 00 03 00 |)M.CopyB|its,....|
|00004e70| 14 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 04 ac 01 |....d..O|NLN.d...|
|00004e80| 86 01 e6 01 92 01 f8 00 | 29 3f 04 20 74 68 65 00 |........|)?. the.|
|00004e90| 06 00 00 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00004ea0| 64 04 b1 01 93 00 36 01 | 9f 00 58 00 28 01 9c 00 |d.....6.|..X.(...|
|00004eb0| 36 08 73 69 7a 65 20 6f | 66 20 00 00 03 00 16 00 |6.size o|f ......|
|00004ec0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 04 b9 01 92 00 |..d..ONL|N.d.....|
|00004ed0| 58 01 9e 00 90 00 29 22 | 08 72 6f 77 42 79 74 65 |X.....)"|.rowByte|
|00004ee0| 73 00 03 00 14 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |s.......|d..ONLN.|
|00004ef0| 64 04 c1 01 93 00 90 01 | 9f 01 7d 00 29 38 33 20 |d.......|..}.)83 |
|00004f00| 69 73 20 64 69 6d 69 6e | 69 73 68 65 64 2e 20 41 |is dimin|ished. A|
|00004f10| 6c 6c 20 64 65 73 69 67 | 6e 20 63 68 6f 69 63 65 |ll desig|n choice|
|00004f20| 73 20 68 61 76 65 20 74 | 72 61 64 65 2d 6f 66 66 |s have t|rade-off|
|00004f30| 73 2e 00 00 04 01 00 00 | a1 00 64 00 10 4f 4e 4c |s.......|..d..ONL|
|00004f40| 4e 00 64 04 f5 01 ab 00 | 36 01 b7 00 d6 00 28 01 |N.d.....|6.....(.|
|00004f50| b4 00 36 1b 54 68 65 20 | 70 6f 72 74 42 69 74 73 |..6.The |portBits|
|00004f60| 20 6f 66 20 61 20 43 47 | 72 61 66 50 6f 72 74 00 | of a CG|rafPort.|
|00004f70| 04 00 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 05 |......d.|.ONLN.d.|
|00004f80| 11 01 c3 00 36 01 cf 01 | 50 00 2a 18 3b 49 6e 20 |....6...|P.*.;In |
|00004f90| 64 65 73 69 67 6e 69 6e | 67 20 43 6f 6c 6f 72 20 |designin|g Color |
|00004fa0| 51 75 69 63 6b 44 72 61 | 77 2c 20 63 65 72 74 61 |QuickDra|w, certa|
|00004fb0| 69 6e 20 72 75 6c 65 73 | 20 77 65 72 65 20 73 65 |in rules| were se|
|00004fc0| 74 20 75 70 20 74 6f 20 | 00 00 06 00 01 00 00 00 |t up to |........|
|00004fd0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 05 4c 01 c3 01 |..d..ONL|N.d.L...|
|00004fe0| 50 01 cf 01 f8 00 28 01 | cc 01 50 22 70 72 6f 76 |P.....(.|..P"prov|
|00004ff0| 69 64 65 20 63 6f 6d 70 | 61 74 69 62 69 6c 69 74 |ide comp|atibilit|
|00005000| 79 20 77 69 74 68 20 74 | 68 65 20 6e 65 77 00 00 |y with t|he new..|
|00005010| 06 00 00 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00005020| 64 05 6f 01 d0 00 36 01 | dc 00 7c 00 28 01 d9 00 |d.o...6.|..|.(...|
|00005030| 36 0f 66 65 61 74 75 72 | 65 73 2e 20 48 65 72 65 |6.featur|es. Here|
|00005040| 20 00 06 00 01 00 00 00 | a1 00 64 00 10 4f 4e 4c | .......|..d..ONL|
|00005050| 4e 00 64 05 7e 01 d0 00 | 7c 01 dc 01 50 00 29 46 |N.d.~...||...P.)F|
|00005060| 2b 77 61 73 20 6f 6e 65 | 20 72 75 6c 65 3a 20 79 |+was one| rule: y|
|00005070| 6f 75 20 73 68 6f 75 6c | 64 20 62 65 20 61 62 6c |ou shoul|d be abl|
|00005080| 65 20 74 6f 20 70 61 73 | 73 20 61 20 00 00 03 00 |e to pas|s a ....|
|00005090| 16 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 05 a9 01 |....d..O|NLN.d...|
|000050a0| cf 01 50 01 db 01 96 00 | 29 d4 0a 70 6f 72 74 50 |..P.....|)..portP|
|000050b0| 69 78 4d 61 70 00 03 00 | 14 00 a1 00 64 00 10 4f |ixMap...|....d..O|
|000050c0| 4e 4c 4e 00 64 05 b3 01 | d0 01 96 01 dc 01 c0 00 |NLN.d...|........|
|000050d0| 29 46 0a 20 66 69 65 6c | 64 20 74 6f 20 00 03 00 |)F. fiel|d to ...|
|000050e0| 16 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 05 bd 01 |....d..O|NLN.d...|
|000050f0| cf 01 c0 01 db 01 f8 00 | 29 2a 08 43 6f 70 79 42 |........|)*.CopyB|
|00005100| 69 74 73 00 03 00 14 00 | 06 00 00 00 00 00 a1 00 |its.....|........|
|00005110| 64 00 10 4f 4e 4c 4e 00 | 64 05 c6 01 dd 00 36 01 |d..ONLN.|d.....6.|
|00005120| e9 00 ad 00 28 01 e6 00 | 36 19 6a 75 73 74 20 61 |....(...|6.just a|
|00005130| 73 20 79 6f 75 20 77 6f | 75 6c 64 20 70 61 73 73 |s you wo|uld pass|
|00005140| 20 61 20 00 03 00 16 00 | a1 00 64 00 10 4f 4e 4c | a .....|..d..ONL|
|00005150| 4e 00 64 05 df 01 dc 00 | ad 01 e8 00 e5 00 29 77 |N.d.....|......)w|
|00005160| 08 70 6f 72 74 42 69 74 | 73 00 03 00 14 00 a1 00 |.portBit|s.......|
|00005170| 64 00 10 4f 4e 4c 4e 00 | 64 05 e7 01 dd 00 e5 01 |d..ONLN.|d.......|
|00005180| e9 00 e8 00 29 38 01 20 | 00 00 06 00 01 00 00 00 |....)8. |........|
|00005190| a1 00 64 00 10 4f 4e 4c | 4e 00 64 05 e8 01 dd 00 |..d..ONL|N.d.....|
|000051a0| e8 01 e9 01 4f 00 29 03 | 16 66 69 65 6c 64 2e 20 |....O.).|.field. |
|000051b0| 55 6e 66 6f 72 74 75 6e | 61 74 65 6c 79 2c 20 00 |Unfortun|ately, .|
|000051c0| 03 00 16 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 05 |......d.|.ONLN.d.|
|000051d0| fe 01 dc 01 4f 01 e8 01 | 95 00 29 67 0a 70 6f 72 |....O...|..)g.por|
|000051e0| 74 50 69 78 4d 61 70 00 | 03 00 14 00 a1 00 64 00 |tPixMap.|......d.|
|000051f0| 10 4f 4e 4c 4e 00 64 06 | 08 01 dd 01 95 01 e9 01 |.ONLN.d.|........|
|00005200| f8 00 29 46 14 20 69 73 | 20 61 20 68 61 6e 64 6c |..)F. is| a handl|
|00005210| 65 20 77 68 65 72 65 61 | 73 00 03 00 16 00 06 00 |e wherea|s.......|
|00005220| 05 00 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 06 |......d.|.ONLN.d.|
|00005230| 1d 01 e9 00 36 01 f5 00 | 6e 00 28 01 f3 00 36 08 |....6...|n.(...6.|
|00005240| 70 6f 72 74 42 69 74 73 | 00 00 03 00 14 00 a1 00 |portBits|........|
|00005250| 64 00 10 4f 4e 4c 4e 00 | 64 06 25 01 ea 00 6e 01 |d..ONLN.|d.%...n.|
|00005260| f6 00 86 00 29 38 04 20 | 69 73 20 00 06 00 06 00 |....)8. |is .....|
|00005270| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 06 29 01 |....d..O|NLN.d.).|
|00005280| ea 00 86 01 f6 00 94 00 | 29 18 02 61 20 00 03 00 |........|)..a ...|
|00005290| 16 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 06 2b 01 |....d..O|NLN.d.+.|
|000052a0| e9 00 94 01 f5 00 be 00 | 29 0e 06 42 69 74 4d 61 |........|)..BitMa|
|000052b0| 70 00 03 00 14 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |p.......|d..ONLN.|
|000052c0| 64 06 31 01 ea 00 be 01 | f6 01 f8 00 29 2a 37 2e |d.1.....|....)*7.|
|000052d0| 20 54 72 69 63 6b 79 20 | 74 79 70 65 2d 63 61 73 | Tricky |type-cas|
|000052e0| 74 69 6e 67 2c 20 68 6f | 77 65 76 65 72 2c 20 61 |ting, ho|wever, a|
|000052f0| 6c 6c 6f 77 73 20 6f 6e | 65 20 74 6f 20 70 61 73 |llows on|e to pas|
|00005300| 73 20 69 6e 20 61 00 00 | 03 00 16 00 06 00 00 00 |s in a..|........|
|00005310| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 06 69 01 |....d..O|NLN.d.i.|
|00005320| f6 00 36 02 02 00 8a 00 | 28 02 00 00 36 0c 63 47 |..6.....|(...6.cG|
|00005330| 72 61 66 50 6f 72 74 27 | 73 20 00 00 06 00 01 00 |rafPort'|s ......|
|00005340| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 06 75 01 |....d..O|NLN.d.u.|
|00005350| f6 00 8a 02 02 00 d0 00 | 29 54 0a 70 6f 72 74 50 |........|)T.portP|
|00005360| 69 78 4d 61 70 00 03 00 | 14 00 a1 00 64 00 10 4f |ixMap...|....d..O|
|00005370| 4e 4c 4e 00 64 06 7f 01 | f7 00 d0 02 03 01 f8 00 |NLN.d...|........|
|00005380| 29 46 3b 20 66 69 65 6c | 64 2c 20 61 73 20 74 68 |)F; fiel|d, as th|
|00005390| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 65 78 61 6d |e follow|ing exam|
|000053a0| 70 6c 65 73 20 73 68 6f | 77 2e 20 59 6f 75 20 6d |ples sho|w. You m|
|000053b0| 75 73 74 20 63 6f 65 72 | 63 65 20 74 68 65 00 00 |ust coer|ce the..|
|000053c0| 03 00 16 00 06 00 00 00 | 00 00 a1 00 64 00 10 4f |........|....d..O|
|000053d0| 4e 4c 4e 00 64 06 bb 02 | 03 00 36 02 0f 00 6e 00 |NLN.d...|..6...n.|
|000053e0| 28 02 0d 00 36 08 63 47 | 72 61 66 50 74 72 00 00 |(...6.cG|rafPtr..|
|000053f0| 03 00 14 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 06 |......d.|.ONLN.d.|
|00005400| c3 02 04 00 6e 02 10 00 | 91 00 29 38 09 20 69 6e |....n...|..)8. in|
|00005410| 20 74 6f 20 61 20 00 00 | 03 00 16 00 a1 00 64 00 | to a ..|......d.|
|00005420| 10 4f 4e 4c 4e 00 64 06 | cc 02 03 00 91 02 0f 00 |.ONLN.d.|........|
|00005430| c2 00 29 23 07 67 72 61 | 66 50 74 72 00 00 03 00 |..)#.gra|fPtr....|
|00005440| 14 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 06 d3 02 |....d..O|NLN.d...|
|00005450| 04 00 c2 02 10 01 1d 00 | 29 31 15 20 69 6e 20 6f |........|)1. in o|
|00005460| 72 64 65 72 20 74 6f 20 | 75 73 65 20 74 68 65 20 |rder to |use the |
|00005470| 00 00 03 00 16 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00005480| 64 06 e8 02 03 01 1d 02 | 0f 01 55 00 29 5b 08 70 |d.......|..U.)[.p|
|00005490| 6f 72 74 42 69 74 73 00 | 03 00 14 00 a1 00 64 00 |ortBits.|......d.|
|000054a0| 10 4f 4e 4c 4e 00 64 06 | f0 02 04 01 55 02 10 01 |.ONLN.d.|....U...|
|000054b0| 71 00 29 38 07 20 66 69 | 65 6c 64 2e 00 00 a1 00 |q.)8. fi|eld.....|
|000054c0| 64 00 10 4f 4e 4c 4e 00 | 64 06 f8 02 1c 00 36 02 |d..ONLN.|d.....6.|
|000054d0| 28 00 4e 00 28 02 25 00 | 36 05 49 6e 20 43 3a 00 |(.N.(.%.|6.In C:.|
|000054e0| 03 00 16 00 0d 00 09 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|000054f0| 4e 00 64 06 ff 02 34 00 | 5a 02 3f 01 bd 00 2b 24 |N.d...4.|Z.?...+$|
|00005500| 17 47 43 47 72 61 66 50 | 74 72 20 20 20 63 6f 6c |.GCGrafP|tr col|
|00005510| 6f 72 50 6f 72 74 3b 20 | 20 20 2f 2a 20 47 72 61 |orPort; | /* Gra|
|00005520| 70 68 69 63 73 20 65 6e | 76 69 72 6f 6e 6d 65 6e |phics en|vironmen|
|00005530| 74 20 66 6f 72 20 63 6f | 6c 6f 72 20 6f 66 66 20 |t for co|lor off |
|00005540| 73 63 72 65 65 6e 20 2a | 2f 00 a1 00 64 00 10 4f |screen *|/...d..O|
|00005550| 4e 4c 4e 00 64 07 48 02 | 3e 00 5a 02 49 01 bd 00 |NLN.d.H.|>.Z.I...|
|00005560| 2a 0a 47 47 72 61 66 50 | 74 72 20 20 20 20 73 61 |*.GGrafP|tr sa|
|00005570| 76 65 64 50 6f 72 74 3b | 20 20 20 2f 2a 20 50 6f |vedPort;| /* Po|
|00005580| 69 6e 74 65 72 20 74 6f | 20 74 68 65 20 73 61 76 |inter to| the sav|
|00005590| 65 64 20 67 72 61 70 68 | 69 63 73 20 65 6e 76 69 |ed graph|ics envi|
|000055a0| 72 6f 6e 6d 65 6e 74 20 | 2a 2f 00 00 a1 00 64 00 |ronment |*/....d.|
|000055b0| 10 4f 4e 4c 4e 00 64 07 | 91 02 52 00 5a 02 5d 00 |.ONLN.d.|..R.Z.].|
|000055c0| 8c 00 2a 14 0a 43 6f 70 | 79 42 69 74 73 28 20 00 |..*..Cop|yBits( .|
|000055d0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 07 9c 02 52 00 |..d..ONL|N.d...R.|
|000055e0| a2 02 5d 01 b0 00 29 48 | 36 26 28 28 47 72 61 66 |..]...)H|6&((Graf|
|000055f0| 50 74 72 29 63 6f 6c 6f | 72 50 6f 72 74 29 2d 3e |Ptr)colo|rPort)->|
|00005600| 70 6f 72 74 42 69 74 73 | 2c 20 26 73 61 76 65 64 |portBits|, &saved|
|00005610| 50 6f 72 74 2d 3e 70 6f | 72 74 42 69 74 73 2c 00 |Port->po|rtBits,.|
|00005620| a1 00 64 00 10 4f 4e 4c | 4e 00 64 07 d3 02 5c 00 |..d..ONL|N.d...\.|
|00005630| 36 02 67 00 9a 00 28 02 | 64 00 36 14 20 20 20 20 |6.g...(.|d.6. |
|00005640| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005650| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 07 e8 02 |....d..O|NLN.d...|
|00005660| 5c 00 a2 02 67 01 79 00 | 29 6c 2b 26 63 6f 6c 6f |\...g.y.|)l+&colo|
|00005670| 72 50 6f 72 74 2d 3e 70 | 6f 72 74 52 65 63 74 2c |rPort->p|ortRect,|
|00005680| 20 26 73 61 76 65 64 50 | 6f 72 74 2d 3e 70 6f 72 | &savedP|ort->por|
|00005690| 74 52 65 63 74 2c 00 00 | a1 00 64 00 10 4f 4e 4c |tRect,..|..d..ONL|
|000056a0| 4e 00 64 08 14 02 66 00 | 36 02 71 00 9a 00 28 02 |N.d...f.|6.q...(.|
|000056b0| 6e 00 36 14 20 20 20 20 | 20 20 20 20 20 20 20 20 |n.6. | |
|000056c0| 20 20 20 20 20 20 20 20 | 00 00 a1 00 64 00 10 4f | |....d..O|
|000056d0| 4e 4c 4e 00 64 08 29 02 | 66 00 a2 02 71 00 e3 00 |NLN.d.).|f...q...|
|000056e0| 29 6c 0d 73 72 63 43 6f | 70 79 2c 20 6e 69 6c 20 |)l.srcCo|py, nil |
|000056f0| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 08 37 02 |....d..O|NLN.d.7.|
|00005700| 66 00 ea 02 71 00 f4 00 | 29 48 02 29 3b 00 03 00 |f...q...|)H.);...|
|00005710| 14 00 0d 00 0c 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00005720| 64 08 3a 02 7c 00 36 02 | 88 00 64 00 28 02 85 00 |d.:.|.6.|..d.(...|
|00005730| 36 0a 49 6e 20 50 61 73 | 63 61 6c 3a 00 00 03 00 |6.In Pas|cal:....|
|00005740| 16 00 0d 00 09 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00005750| 64 08 46 02 94 00 5a 02 | 9f 01 ae 00 2b 24 17 44 |d.F...Z.|....+$.D|
|00005760| 63 6f 6c 6f 72 50 6f 72 | 74 3a 20 20 20 43 47 72 |colorPor|t: CGr|
|00005770| 61 66 50 74 72 3b 20 20 | 20 7b 47 72 61 70 68 69 |afPtr; | {Graphi|
|00005780| 63 73 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 20 66 |cs envir|onment f|
|00005790| 6f 72 20 63 6f 6c 6f 72 | 20 6f 66 66 20 73 63 72 |or color| off scr|
|000057a0| 65 65 6e 7d 00 00 ff 2e | 0c 00 00 00 00 03 48 02 |een}....|......H.|
|000057b0| 52 00 11 02 ff 0c 00 ff | ff ff ff 00 00 00 00 00 |R.......|........|
|000057c0| 00 00 00 02 52 00 00 03 | 48 00 00 00 00 00 00 00 |....R...|H.......|
|000057d0| 1e 00 01 00 0a 00 00 00 | 00 03 49 02 52 00 2c 00 |........|..I.R.,.|
|000057e0| 08 00 14 05 54 69 6d 65 | 73 00 03 00 14 00 0d 00 |....Time|s.......|
|000057f0| 0a 00 2e 00 04 00 00 00 | 00 00 2b 5a 2d 18 44 65 |........|..+Z-.De|
|00005800| 76 65 6c 6f 70 65 72 20 | 53 75 70 70 6f 72 74 20 |veloper |Support |
|00005810| 43 65 6e 74 65 72 00 00 | 28 00 2d 01 f3 08 4d 61 |Center..|(.-...Ma|
|00005820| 79 20 31 39 39 33 00 00 | 20 00 2f 00 58 00 2f 02 |y 1993..| ./.X./.|
|00005830| 1d 00 20 02 b1 00 58 02 | b1 02 1d 00 28 02 c6 00 |.. ...X.|....(...|
|00005840| 5a 1c 51 44 20 31 35 20 | 2d 20 52 6f 77 42 79 74 |Z.QD 15 |- RowByt|
|00005850| 65 73 20 52 65 76 65 61 | 6c 65 64 20 49 49 00 00 |es Revea|led II..|
|00005860| 28 02 c6 02 04 01 33 00 | 29 05 05 20 6f 66 20 35 |(.....3.|).. of 5|
|00005870| 00 00 28 02 dc 00 5a 09 | 51 75 69 63 6b 44 72 61 |..(...Z.|QuickDra|
|00005880| 77 00 2c 00 0a 00 16 07 | 43 6f 75 72 69 65 72 00 |w.,.....|Courier.|
|00005890| 03 00 16 00 0d 00 09 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|000058a0| 4e 00 64 00 00 00 3c 00 | 7e 00 47 01 d2 00 28 00 |N.d...<.|~.G...(.|
|000058b0| 44 00 7e 44 73 61 76 65 | 64 50 6f 72 74 3a 20 20 |D.~Dsave|dPort: |
|000058c0| 20 47 72 61 66 50 74 72 | 3b 20 20 20 20 7b 50 6f | GrafPtr|; {Po|
|000058d0| 69 6e 74 65 72 20 74 6f | 20 74 68 65 20 73 61 76 |inter to| the sav|
|000058e0| 65 64 20 67 72 61 70 68 | 69 63 73 20 65 6e 76 69 |ed graph|ics envi|
|000058f0| 72 6f 6e 6d 65 6e 74 7d | 00 00 a1 00 64 00 10 4f |ronment}|....d..O|
|00005900| 4e 4c 4e 00 64 00 46 00 | 50 00 7e 00 5b 00 ab 00 |NLN.d.F.|P.~.[...|
|00005910| 2a 14 09 43 6f 70 79 42 | 69 74 73 28 00 00 a1 00 |*..CopyB|its(....|
|00005920| 64 00 10 4f 4e 4c 4e 00 | 64 00 50 00 50 00 c6 00 |d..ONLN.|d.P.P...|
|00005930| 5b 01 c0 00 29 48 32 47 | 72 61 66 50 74 72 28 63 |[...)H2G|rafPtr(c|
|00005940| 6f 6c 6f 72 50 6f 72 74 | 29 5e 2e 70 6f 72 74 42 |olorPort|)^.portB|
|00005950| 69 74 73 2c 20 73 61 76 | 65 64 50 6f 72 74 5e 2e |its, sav|edPort^.|
|00005960| 70 6f 72 74 42 69 74 73 | 2c 00 a1 00 64 00 10 4f |portBits|,...d..O|
|00005970| 4e 4c 4e 00 64 00 86 00 | 5a 00 c6 00 65 01 93 00 |NLN.d...|Z...e...|
|00005980| 2a 0a 29 63 6f 6c 6f 72 | 50 6f 72 74 5e 2e 70 6f |*.)color|Port^.po|
|00005990| 72 74 52 65 63 74 2c 20 | 73 61 76 65 64 50 6f 72 |rtRect, |savedPor|
|000059a0| 74 5e 2e 70 6f 72 74 52 | 65 63 74 2c 00 00 a1 00 |t^.portR|ect,....|
|000059b0| 64 00 10 4f 4e 4c 4e 00 | 64 00 b3 00 64 00 c6 00 |d..ONLN.|d...d...|
|000059c0| 6f 01 0c 00 2a 0a 0e 73 | 72 63 43 6f 70 79 2c 20 |o...*..s|rcCopy, |
|000059d0| 4e 49 4c 29 3b 00 03 00 | 14 00 0d 00 0c 00 a1 00 |NIL);...|........|
|000059e0| 64 00 10 4f 4e 4c 4e 00 | 64 00 c2 00 7b 00 5a 00 |d..ONLN.|d...{.Z.|
|000059f0| 87 01 2f 00 28 00 84 00 | 5a 2e 54 79 70 65 63 61 |../.(...|Z.Typeca|
|00005a00| 73 74 69 6e 67 20 69 73 | 20 6e 6f 74 20 74 68 65 |sting is| not the|
|00005a10| 20 6f 6e 6c 79 20 74 72 | 69 63 6b 65 72 79 20 69 | only tr|ickery i|
|00005a20| 6e 76 6f 6c 76 65 64 20 | 00 00 06 00 01 00 00 00 |nvolved |........|
|00005a30| a1 00 64 00 10 4f 4e 4c | 4e 00 64 00 f0 00 7b 01 |..d..ONL|N.d...{.|
|00005a40| 2f 00 87 01 4b 00 29 d5 | 06 68 65 72 65 2e 20 00 |/...K.).|.here. .|
|00005a50| 03 00 16 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 00 |......d.|.ONLN.d.|
|00005a60| f6 00 7a 01 4b 00 86 01 | 83 00 29 1c 08 43 6f 70 |..z.K...|..)..Cop|
|00005a70| 79 42 69 74 73 00 03 00 | 14 00 a1 00 64 00 10 4f |yBits...|....d..O|
|00005a80| 4e 4c 4e 00 64 00 fe 00 | 7b 01 83 00 87 02 1c 00 |NLN.d...|{.......|
|00005a90| 29 38 1f 20 69 73 20 66 | 61 63 65 64 20 77 69 74 |)8. is f|aced wit|
|00005aa0| 68 20 61 20 6d 61 6a 6f | 72 20 68 65 61 64 61 63 |h a majo|r headac|
|00005ab0| 68 65 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 01 |he....d.|.ONLN.d.|
|00005ac0| 1e 00 88 00 5a 00 94 00 | c3 00 28 00 91 00 5a 17 |....Z...|..(...Z.|
|00005ad0| 69 66 20 79 6f 75 20 74 | 68 69 6e 6b 20 61 62 6f |if you t|hink abo|
|00005ae0| 75 74 20 69 74 2e 20 00 | 03 00 16 00 a1 00 64 00 |ut it. .|......d.|
|00005af0| 10 4f 4e 4c 4e 00 64 01 | 35 00 87 00 c3 00 93 01 |.ONLN.d.|5.......|
|00005b00| 09 00 29 69 0a 50 6f 72 | 74 50 69 78 4d 61 70 00 |..)i.Por|tPixMap.|
|00005b10| 03 00 14 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 01 |......d.|.ONLN.d.|
|00005b20| 3f 00 88 01 09 00 94 01 | 70 00 29 46 16 20 69 73 |?.......|p.)F. is|
|00005b30| 20 61 20 68 61 6e 64 6c | 65 2c 20 61 6e 64 20 74 | a handl|e, and t|
|00005b40| 68 65 20 00 06 00 02 00 | 00 00 a1 00 64 00 10 4f |he .....|....d..O|
|00005b50| 4e 4c 4e 00 64 01 55 00 | 88 01 70 00 94 01 b7 00 |NLN.d.U.|..p.....|
|00005b60| 29 67 0e 70 61 72 61 6d | 65 74 65 72 73 20 6f 66 |)g.param|eters of|
|00005b70| 20 00 03 00 16 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 | .......|d..ONLN.|
|00005b80| 64 01 63 00 87 01 b7 00 | 93 01 ef 00 29 47 08 43 |d.c.....|....)G.C|
|00005b90| 6f 70 79 42 69 74 73 00 | 03 00 14 00 a1 00 64 00 |opyBits.|......d.|
|00005ba0| 10 4f 4e 4c 4e 00 64 01 | 6b 00 88 01 ef 00 94 02 |.ONLN.d.|k.......|
|00005bb0| 1c 00 29 38 09 20 65 78 | 70 65 63 74 20 61 00 00 |..)8. ex|pect a..|
|00005bc0| 06 00 00 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00005bd0| 64 01 75 00 95 00 5a 00 | a1 00 92 00 28 00 9e 00 |d.u...Z.|....(...|
|00005be0| 5a 0d 70 6f 69 6e 74 65 | 72 20 74 6f 20 61 20 00 |Z.pointe|r to a .|
|00005bf0| 03 00 16 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 01 |......d.|.ONLN.d.|
|00005c00| 82 00 94 00 92 00 a0 00 | bc 00 29 38 06 70 69 78 |........|..)8.pix|
|00005c10| 4d 61 70 00 03 00 14 00 | a1 00 64 00 10 4f 4e 4c |Map.....|..d..ONL|
|00005c20| 4e 00 64 01 88 00 95 00 | bc 00 a1 00 ef 00 29 2a |N.d.....|......)*|
|00005c30| 0b 2e 20 54 6f 20 73 6f | 6c 76 65 20 00 00 06 00 |.. To so|lve ....|
|00005c40| 01 00 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 01 |......d.|.ONLN.d.|
|00005c50| 93 00 95 00 ef 00 a1 01 | 08 00 29 33 06 74 68 69 |........|..)3.thi|
|00005c60| 73 2c 20 00 0d 00 09 00 | a1 00 64 00 10 4f 4e 4c |s, .....|..d..ONL|
|00005c70| 4e 00 64 01 99 00 96 01 | 08 00 a1 01 2d 00 29 19 |N.d.....|....-.).|
|00005c80| 08 43 6f 70 79 42 69 74 | 73 00 0d 00 0c 00 a1 00 |.CopyBit|s.......|
|00005c90| 64 00 10 4f 4e 4c 4e 00 | 64 01 a1 00 95 01 2d 00 |d..ONLN.|d.....-.|
|00005ca0| a1 02 1c 00 29 25 34 20 | 68 61 73 20 61 20 6c 69 |....)%4 |has a li|
|00005cb0| 74 74 6c 65 20 61 6c 67 | 6f 72 69 74 68 6d 20 69 |ttle alg|orithm i|
|00005cc0| 6e 20 69 74 20 77 68 69 | 63 68 20 64 65 72 65 66 |n it whi|ch deref|
|00005cd0| 65 72 65 6e 63 65 73 20 | 74 68 65 00 06 00 03 00 |erences |the.....|
|00005ce0| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 01 d6 00 |....d..O|NLN.d...|
|00005cf0| a2 00 5a 00 ae 00 fa 00 | 28 00 ab 00 5a 1f 70 6f |..Z.....|(...Z.po|
|00005d00| 69 6e 74 65 72 20 74 77 | 69 63 65 20 69 66 20 79 |inter tw|ice if y|
|00005d10| 6f 75 20 70 61 73 73 20 | 69 6e 20 61 20 00 03 00 |ou pass |in a ...|
|00005d20| 16 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 01 f5 00 |....d..O|NLN.d...|
|00005d30| a1 00 fa 00 ad 01 32 00 | 29 a0 08 70 6f 72 74 42 |......2.|)..portB|
|00005d40| 69 74 73 00 03 00 14 00 | a1 00 64 00 10 4f 4e 4c |its.....|..d..ONL|
|00005d50| 4e 00 64 01 fd 00 a2 01 | 32 00 ae 01 f8 00 29 38 |N.d.....|2.....)8|
|00005d60| 28 2e 20 54 6f 20 69 64 | 65 6e 74 69 66 79 20 74 |(. To id|entify t|
|00005d70| 68 65 20 74 79 70 65 20 | 6f 66 20 70 6f 69 6e 74 |he type |of point|
|00005d80| 65 72 20 69 74 20 69 73 | 20 00 06 00 04 00 00 00 |er it is| .......|
|00005d90| a1 00 64 00 10 4f 4e 4c | 4e 00 64 02 25 00 a2 01 |..d..ONL|N.d.%...|
|00005da0| f8 00 ae 02 1c 00 29 c6 | 08 67 65 74 74 69 6e 67 |......).|.getting|
|00005db0| 2c 00 03 00 16 00 06 00 | 00 00 00 00 a1 00 64 00 |,.......|......d.|
|00005dc0| 10 4f 4e 4c 4e 00 64 02 | 2e 00 ae 00 5a 00 ba 00 |.ONLN.d.|....Z...|
|00005dd0| 92 00 28 00 b8 00 5a 08 | 43 6f 70 79 42 69 74 73 |..(...Z.|CopyBits|
|00005de0| 00 00 03 00 14 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00005df0| 64 02 36 00 af 00 92 00 | bb 01 16 00 29 38 1e 20 |d.6.....|....)8. |
|00005e00| 6c 6f 6f 6b 73 20 61 74 | 20 74 68 65 20 74 6f 70 |looks at| the top|
|00005e10| 20 74 77 6f 20 62 69 74 | 73 20 6f 66 20 00 06 00 | two bit|s of ...|
|00005e20| 01 00 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 02 |......d.|.ONLN.d.|
|00005e30| 54 00 af 01 16 00 bb 01 | 28 00 29 84 04 74 68 65 |T.......|(.)..the|
|00005e40| 20 00 03 00 16 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 | .......|d..ONLN.|
|00005e50| 64 02 58 00 ae 01 28 00 | ba 01 60 00 29 12 08 72 |d.X...(.|..`.)..r|
|00005e60| 6f 77 42 79 74 65 73 00 | 03 00 14 00 a1 00 64 00 |owBytes.|......d.|
|00005e70| 10 4f 4e 4c 4e 00 64 02 | 60 00 af 01 60 00 bb 02 |.ONLN.d.|`...`...|
|00005e80| 1c 00 29 38 27 20 66 69 | 65 6c 64 2e 20 41 73 20 |..)8' fi|eld. As |
|00005e90| 6d 65 6e 74 69 6f 6e 65 | 64 20 61 62 6f 76 65 2c |mentione|d above,|
|00005ea0| 20 74 68 65 20 74 6f 70 | 20 62 69 74 00 00 06 00 | the top| bit....|
|00005eb0| 00 00 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 02 |......d.|.ONLN.d.|
|00005ec0| 88 00 bc 00 5a 00 c8 00 | cd 00 28 00 c5 00 5a 18 |....Z...|..(...Z.|
|00005ed0| 64 69 73 74 69 6e 67 75 | 69 73 68 65 73 20 62 65 |distingu|ishes be|
|00005ee0| 74 77 65 65 6e 20 61 20 | 00 00 03 00 16 00 a1 00 |tween a |........|
|00005ef0| 64 00 10 4f 4e 4c 4e 00 | 64 02 a0 00 bb 00 cd 00 |d..ONLN.|d.......|
|00005f00| c7 00 f7 00 29 73 06 70 | 69 78 4d 61 70 00 03 00 |....)s.p|ixMap...|
|00005f10| 14 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 02 a6 00 |....d..O|NLN.d...|
|00005f20| bc 00 f7 00 c8 01 16 00 | 29 2a 07 20 61 6e 64 20 |........|)*. and |
|00005f30| 61 20 00 00 03 00 16 00 | a1 00 64 00 10 4f 4e 4c |a ......|..d..ONL|
|00005f40| 4e 00 64 02 ad 00 bb 01 | 16 00 c7 01 40 00 29 1f |N.d.....|....@.).|
|00005f50| 06 62 69 74 4d 61 70 00 | 03 00 14 00 a1 00 64 00 |.bitMap.|......d.|
|00005f60| 10 4f 4e 4c 4e 00 64 02 | b3 00 bc 01 40 00 c8 01 |.ONLN.d.|....@...|
|00005f70| 82 00 29 2a 0f 2e 20 54 | 68 65 20 6e 65 78 74 20 |..)*.. T|he next |
|00005f80| 62 69 74 20 00 00 06 00 | 01 00 00 00 a1 00 64 00 |bit ....|......d.|
|00005f90| 10 4f 4e 4c 4e 00 64 02 | c2 00 bc 01 82 00 c8 01 |.ONLN.d.|........|
|00005fa0| 99 00 29 42 06 74 65 6c | 6c 73 20 00 03 00 16 00 |..)B.tel|ls .....|
|00005fb0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 02 c8 00 bb 01 |..d..ONL|N.d.....|
|00005fc0| 99 00 c7 01 d1 00 29 17 | 08 43 6f 70 79 42 69 74 |......).|.CopyBit|
|00005fd0| 73 00 03 00 14 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |s.......|d..ONLN.|
|00005fe0| 64 02 d0 00 bc 01 d1 00 | c8 01 f2 00 29 38 08 20 |d.......|....)8. |
|00005ff0| 69 66 20 74 68 65 20 00 | 03 00 16 00 a1 00 64 00 |if the .|......d.|
|00006000| 10 4f 4e 4c 4e 00 64 02 | d8 00 bb 01 f2 00 c7 02 |.ONLN.d.|........|
|00006010| 1c 00 29 21 06 70 69 78 | 4d 61 70 00 03 00 14 00 |..)!.pix|Map.....|
|00006020| 06 00 00 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00006030| 64 02 df 00 c9 00 5a 00 | d5 00 8f 00 28 00 d2 00 |d.....Z.|....(...|
|00006040| 5a 0d 69 73 20 70 61 72 | 74 20 6f 66 20 61 20 00 |Z.is par|t of a .|
|00006050| 03 00 16 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 02 |......d.|.ONLN.d.|
|00006060| ec 00 c8 00 8f 00 d4 00 | ce 00 29 35 09 63 47 72 |........|..)5.cGr|
|00006070| 61 66 50 6f 72 74 00 00 | 03 00 14 00 a1 00 64 00 |afPort..|......d.|
|00006080| 10 4f 4e 4c 4e 00 64 02 | f5 00 c9 00 ce 00 d5 01 |.ONLN.d.|........|
|00006090| 2e 00 29 3f 16 20 6f 72 | 20 6e 6f 74 20 28 73 65 |..)?. or| not (se|
|000060a0| 65 20 46 69 67 2e 20 31 | 29 2e 20 00 06 00 01 00 |e Fig. 1|). .....|
|000060b0| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 03 0b 00 |....d..O|NLN.d...|
|000060c0| c9 01 2e 00 d5 01 b6 00 | 29 60 1e 49 66 20 74 68 |........|)`.If th|
|000060d0| 65 20 74 77 6f 20 62 69 | 74 73 20 61 72 65 20 73 |e two bi|ts are s|
|000060e0| 65 74 2c 20 74 68 65 6e | 20 00 03 00 16 00 a1 00 |et, then| .......|
|000060f0| 64 00 10 4f 4e 4c 4e 00 | 64 03 29 00 c8 01 b6 00 |d..ONLN.|d.).....|
|00006100| d4 01 ee 00 29 88 08 43 | 6f 70 79 42 69 74 73 00 |....)..C|opyBits.|
|00006110| 03 00 14 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 03 |......d.|.ONLN.d.|
|00006120| 31 00 c9 01 ee 00 d5 02 | 1c 00 29 38 09 20 6b 6e |1.......|..)8. kn|
|00006130| 6f 77 73 20 69 74 00 00 | 06 00 00 00 00 00 a1 00 |ows it..|........|
|00006140| 64 00 10 4f 4e 4c 4e 00 | 64 03 3b 00 d6 00 5a 00 |d..ONLN.|d.;...Z.|
|00006150| e2 00 ad 00 28 00 df 00 | 5a 12 69 73 20 62 65 69 |....(...|Z.is bei|
|00006160| 6e 67 20 70 61 73 73 65 | 64 20 61 20 00 00 03 00 |ng passe|d a ....|
|00006170| 16 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 03 4d 00 |....d..O|NLN.d.M.|
|00006180| d5 00 ad 00 e1 01 01 00 | 29 53 0c 70 69 78 4d 61 |........|)S.pixMa|
|00006190| 70 48 61 6e 64 6c 65 00 | 03 00 14 00 a1 00 64 00 |pHandle.|......d.|
|000061a0| 10 4f 4e 4c 4e 00 64 03 | 59 00 d6 01 01 00 e2 01 |.ONLN.d.|Y.......|
|000061b0| ae 00 29 54 26 2c 20 61 | 6e 64 20 69 74 20 77 69 |..)T&, a|nd it wi|
|000061c0| 6c 6c 20 70 65 72 66 6f | 72 6d 20 74 68 65 20 64 |ll perfo|rm the d|
|000061d0| 65 72 65 66 65 72 65 6e | 63 65 2e 00 a1 00 64 00 |ereferen|ce....d.|
|000061e0| 08 64 50 72 6f 00 00 00 | 01 00 a0 00 82 00 a0 00 |.dPro...|........|
|000061f0| 8c 00 a0 00 8c 00 a0 00 | 8c 00 a1 00 64 00 0a 64 |........|....d..d|
|00006200| 50 72 6f 00 09 00 01 00 | 02 00 a0 00 8c 00 01 00 |Pro.....|........|
|00006210| 0a 00 ee 00 5a 02 04 02 | 1f 00 71 00 1e 01 0a 00 |....Z...|..q.....|
|00006220| cc 01 12 00 db 01 0e 00 | db 01 12 00 cc 01 0e 00 |........|........|
|00006230| cc 01 0a 00 cc 01 0e 00 | db 00 22 01 0e 00 b3 19 |........|..".....|
|00006240| 00 00 a0 00 8d 00 a1 00 | 64 00 08 64 50 72 6f 00 |........|d..dPro.|
|00006250| 0a 00 00 00 1a ff ff ff | ff ff ff 00 09 00 00 00 |........|........|
|00006260| 00 00 00 00 00 00 31 01 | 04 00 5f 01 1b 00 b3 00 |......1.|.._.....|
|00006270| 1a 00 00 00 00 00 00 00 | 09 ff ff ff ff ff ff ff |........|........|
|00006280| ff 00 38 00 a0 00 8d 00 | a0 00 9b 00 a1 00 96 00 |..8.....|........|
|00006290| 0c 01 00 00 00 00 00 00 | 00 00 00 00 00 00 a0 00 |........|........|
|000062a0| 98 00 a1 00 64 00 18 64 | 50 72 6f 00 0f 00 15 00 |....d..d|Pro.....|
|000062b0| 00 00 30 00 00 00 01 00 | 00 00 00 00 00 00 00 00 |..0.....|........|
|000062c0| 01 00 0a 01 07 00 6d 01 | 17 00 a7 00 2c 00 0c 00 |......m.|....,...|
|000062d0| 15 09 48 65 6c 76 65 74 | 69 63 61 00 03 00 15 00 |..Helvet|ica.....|
|000062e0| 2e 00 04 ff 00 00 00 00 | 10 01 16 01 c5 01 16 01 |........|........|
|000062f0| c5 00 15 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00006300| 64 ff ff 00 00 00 00 00 | 00 00 00 00 28 01 12 00 |d.......|....(...|
|00006310| 70 01 42 00 15 00 00 00 | a1 00 64 00 10 4f 4e 4c |p.B.....|..d..ONL|
|00006320| 4e 00 64 ff ff 00 00 00 | 00 00 00 00 00 00 29 09 |N.d.....|......).|
|00006330| 01 69 00 00 15 00 00 00 | a1 00 64 00 10 4f 4e 4c |.i......|..d..ONL|
|00006340| 4e 00 64 ff ff 00 00 00 | 00 00 00 00 00 00 29 02 |N.d.....|......).|
|00006350| 01 74 00 00 15 00 00 00 | a1 00 64 00 10 4f 4e 4c |.t......|..d..ONL|
|00006360| 4e 00 64 ff ff 00 00 00 | 00 00 00 00 00 00 29 03 |N.d.....|......).|
|00006370| 01 4d 00 00 15 00 00 00 | a1 00 64 00 10 4f 4e 4c |.M......|..d..ONL|
|00006380| 4e 00 64 ff ff 00 00 00 | 00 00 00 00 00 00 29 0b |N.d.....|......).|
|00006390| 01 61 00 00 15 00 00 00 | a1 00 64 00 10 4f 4e 4c |.a......|..d..ONL|
|000063a0| 4e 00 64 ff ff 00 00 00 | 00 00 00 00 00 00 29 06 |N.d.....|......).|
|000063b0| 01 70 00 00 15 00 00 00 | a1 00 64 00 10 4f 4e 4c |.p......|..d..ONL|
|000063c0| 4e 00 64 ff ff 00 00 00 | 00 00 00 00 00 00 29 08 |N.d.....|......).|
|000063d0| 01 50 00 00 15 00 00 00 | a1 00 64 00 10 4f 4e 4c |.P......|..d..ONL|
|000063e0| 4e 00 64 ff ff 00 00 00 | 00 00 00 00 00 00 29 08 |N.d.....|......).|
|000063f0| 01 74 00 00 15 00 00 00 | a1 00 64 00 10 4f 4e 4c |.t......|..d..ONL|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.